Skip to content

Commit 1b3f77e

Browse files
authored
Fix: Add flag to search query for SecretService to retrieve all accounts (#2218)
Currently, this searchQuery only returns one account even when there are multiple of them. Adding this flag will result in retrieving all the accounts and does not interrupt the previous flow.
2 parents f2626d4 + f6fe9ca commit 1b3f77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/Interop/Linux/SecretServiceCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private unsafe IEnumerable<ICredential> Enumerate(string service, string account
6666
secService,
6767
ref schema,
6868
queryAttrs,
69-
SecretSearchFlags.SECRET_SEARCH_UNLOCK,
69+
SecretSearchFlags.SECRET_SEARCH_UNLOCK | SecretSearchFlags.SECRET_SEARCH_ALL,
7070
IntPtr.Zero,
7171
out error);
7272

0 commit comments

Comments
 (0)