Dmitry Shachnev
Dmitry Shachnev
The `unlock` method has a counter-intuitive interface: https://secretstorage.readthedocs.io/en/latest/collection.html#secretstorage.collection.Collection.unlock > Returns a boolean representing whether the prompt has been dismissed; that means False on successful unlocking and True if it has...
> Is my understanding that `collection.unlock()` should interactively prompt for a password correct? Yes, it should prompt for a password. Are you using gnome-keyring? If yes, is it GNOME Shell,...
Thanks for your bug report and sorry for delayed response. Unfortunately, I cannot reproduce it. So I have a few questions: - Do you have gnome-keyring installed and running? -...
Hi! Can you please share more details about your configuration? - What is the desktop environment (GNOME Shell, other DE, headless)? - Is gnome-keyring installed and running? It looks like...
Hi! You need either a real Secret Service daemon (e.g. gnome-keyring), or a mock implementation, like what I am using here (maybe without coverage, you don't need it): https://github.com/mitya57/secretstorage/blob/bf1e831954626d58551050d520f1fff2942a48cd/.github/workflows/main.yml#L19-L25
> Which one module provides that? In my tests on GitHub I use libsecret's mock service. It is not part of binary packages, but it's present in upstream git repository,...
I never thought about that. Patches are welcome :smile:
1. Clone `https://gitlab.gnome.org/GNOME/libsecret` or download the tarball from https://download.gnome.org/sources/libsecret/ and unpack it. 2. In secretstorage source root, run `dbus-run-session -- python ./tests/run_tests.py /path/to/libsecret/libsecret/mock-service-normal.py`. Where `/path/to/libsecret` is path to unpacked/cloned tree.
Hi! I'm all for it — but I don't have much time, nor a use case that needs it. The biggest user of SecretStorage is Python-Keyring, and that library doesn't...
Of course I will gladly accept pull requests! Also adding new API is fine. Marking old as deprecated is also fine.