Should unlock the system’s key ring as needed
In Gnome 3.6, when the key ring is locked:
None, even if the key ring has a matching password,
set_password()raises the same exception as in issue
#69, reproduced below.
If the key ring is then unlocked through another application (eg. Empathy), everything starts working as expected.
Expected result: when the key ring is locked, the
keyring module should have Gnome show the usual password prompt to unlock it.
File "/usr/lib64/python2.7/site-packages/keyring/core.py", line 42, in set_password _keyring_backend.set_password(service_name, username, password) File "/usr/lib64/python2.7/site-packages/keyring/backend.py", line 233, in set_password True) File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__ return self._proxy_method(*args, **keywords) File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__ **keywords) File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection