GNOME Bugzilla – Bug 614350
Lock on Idle Doesn't Work in Python Bindings
Last modified: 2021-06-18 13:52:43 UTC
First of all I'd like to thank all you guys for this great Desktop Environment. I'm facing a problem with Python bindings for Gnome Keyring Library. Everything works really fine unless the "lock on idle" feature. I couldn't find any examples on how to use this feature, not even in C, and as far as I understood, I need to set the lock_timeout and enable the lock_on_idle. I'm doing as the following: >>> import gnomekeyring as gk >>> import glib >>> >>> glib.set_application_name('MyApp') >>> my_keyring = gk.get_info_sync('MyKeyring') >>> >>> my_keyring.get_is_locked() False >>> my_keyring.set_lock_timeout(10) #10 seconds >>> my_keyring.set_lock_on_idle(True) >>> my_keyring.get_is_locked() # after 60 seconds False >>> my_keyring.get_is_locked() # after 15 minutes False >>> I repeated the test but instead of waiting with the "process opened" I closed it and after 15 min looked through seahorse and the keyring wasn't locked. Is this really a bug or I'm misunderstanding the "lock on idle" feature? What's the correct approach? Best regards.
Oddly enough, this feature was exposed in libgnome-keyring by the original authors but never implemented. Recently work was done in gnome-keyring to have keyring support for this, but it's not yet complete. Hopefully by next cycle.
Created attachment 170041 [details] [review] A small part of implementation
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of libgnome-keyring, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libgnome-keyring/-/issues/ Thank you for your understanding and your help.