You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
collection.unlock() and collection.is_locked() both return True #32
I tried the following; collection.unlock() and collection.is_locked() both return True. I must be doing something wrong, but don't know enough about secretstorage to identify what my error is. Please help!
$ python3
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import secretstorage
>>> collection = secretstorage.get_default_collection(secretstorage.dbus_init())
>>> collection.is_locked()
True
>>> collection.unlock()
True
>>> collection.is_locked()
True
>>>
Thanks! Is my understanding that collection.unlock() should interactively prompt for a password correct? It doesn't for me, so I'm probably doing something else that's wrong.
Sorry for taking your time. I'll have physical access to the machine tomorrow, and I'm hoping things will just work if I login to the desktop environment (Lubuntu 20.04 / LXQT by default, but will switch to plain fvwm shortly). For now, I'm logged in via ssh and ran the following
before updating SecretStorage and running the code in my first post. collection.unlock() just returns True for me; no prompt, no exception.
One other possibility -- just a random thought -- is that the secrets / collection is stored in an older incompatible format. I'm trying to revive this machine by installing a light distribution, but the home directories have been around and unused for some years.
Activity
mitya57 commentedon Sep 28, 2021
The
unlockmethod has a counter-intuitive interface:https://secretstorage.readthedocs.io/en/latest/collection.html#secretstorage.collection.Collection.unlock
We inherited it from the Secret Service specification. I hate it too, but now it's too late to change it.
mandarm commentedon Sep 29, 2021
Thanks! Is my understanding that
collection.unlock()should interactively prompt for a password correct? It doesn't for me, so I'm probably doing something else that's wrong.mitya57 commentedon Sep 29, 2021
Yes, it should prompt for a password. Are you using gnome-keyring? If yes, is it GNOME Shell, some other desktop environment or a headless system?
mandarm commentedon Sep 30, 2021
Sorry for taking your time. I'll have physical access to the machine tomorrow, and I'm hoping things will just work if I login to the desktop environment (Lubuntu 20.04 / LXQT by default, but will switch to plain fvwm shortly). For now, I'm logged in via ssh and ran the following
before updating
SecretStorageand running the code in my first post.collection.unlock()just returns True for me; no prompt, no exception.One other possibility -- just a random thought -- is that the secrets / collection is stored in an older incompatible format. I'm trying to revive this machine by installing a light distribution, but the home directories have been around and unused for some years.