From bf6850a1004731a593f0a9dbe8a065dff5ec5f59 Mon Sep 17 00:00:00 2001 From: li0nsec Date: Fri, 26 May 2023 12:54:09 +0200 Subject: [PATCH] Search all open keepass databases instead of only the last focused one --- qubes-keepass.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qubes-keepass.py b/qubes-keepass.py index 3e04060..79d35d8 100755 --- a/qubes-keepass.py +++ b/qubes-keepass.py @@ -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)