Skip to content

Commit

Permalink
Merge pull request #2 from li0nsec/search-all-open-keepass-dbs
Browse files Browse the repository at this point in the history
Search all open keepass databases instead of only the last focused one
  • Loading branch information
qtc-de authored May 27, 2023
2 parents 7fc0c39 + bf6850a commit 5c385d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qubes-keepass.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,11 @@ def load(service: Secret.Service) -> CredentialCollection:
None
'''
credentials = []
collection = Secret.Collection.for_alias_sync(service, "default", Secret.CollectionCreateFlags.NONE, None)

for item in collection.get_items():
credential = Credential(item, service)
credentials.append(credential)
for collection in service.get_collections():
for item in collection.get_items():
credential = Credential(item, service)
credentials.append(credential)

return CredentialCollection(credentials)

Expand Down

0 comments on commit 5c385d1

Please sign in to comment.