Skip to content

Commit 5c385d1

Browse files
authored
Merge pull request #2 from li0nsec/search-all-open-keepass-dbs
Search all open keepass databases instead of only the last focused one
2 parents 7fc0c39 + bf6850a commit 5c385d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qubes-keepass.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,11 @@ def load(service: Secret.Service) -> CredentialCollection:
814814
None
815815
'''
816816
credentials = []
817-
collection = Secret.Collection.for_alias_sync(service, "default", Secret.CollectionCreateFlags.NONE, None)
818817

819-
for item in collection.get_items():
820-
credential = Credential(item, service)
821-
credentials.append(credential)
818+
for collection in service.get_collections():
819+
for item in collection.get_items():
820+
credential = Credential(item, service)
821+
credentials.append(credential)
822822

823823
return CredentialCollection(credentials)
824824

0 commit comments

Comments
 (0)