xi-keyring

simple and extensible alternative for gnome-keyring
git clone https://git.ce9e.org/xi-keyring.git

commit
45fd19d6e80fe1318a467c8a49d14e64a01c2ef1
parent
d0e372a3f12319b9ac1379f79fb295503bdffa91
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-08-01 12:26
Fixup: use "host" in prompts on empty app_id

Diffstat

M xikeyring/keyring.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/xikeyring/keyring.py b/xikeyring/keyring.py

@@ -131,11 +131,11 @@ class Keyring:
  131   131             fh.write(encrypted)
  132   132 
  133   133     def confirm_access(self, app_id: str) -> None:
  134    -1         if not self.prompt.confirm(f'Allow {app_id} to access a secret from your keyring?'):
   -1   134         if not self.prompt.confirm(f'Allow {app_id or "host"} to access a secret from your keyring?'):
  135   135             raise AccessDeniedError
  136   136 
  137   137     def confirm_change(self, app_id: str) -> None:
  138    -1         if not self.prompt.confirm(f'Allow {app_id} to make changes to your keyring?'):
   -1   138         if not self.prompt.confirm(f'Allow {app_id or "host"} to make changes to your keyring?'):
  139   139             raise AccessDeniedError
  140   140 
  141   141     def has_access(self, app_id: str, item: Item) -> bool: