After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614350 - Lock on Idle Doesn't Work in Python Bindings
Lock on Idle Doesn't Work in Python Bindings
Status: RESOLVED OBSOLETE
Product: libgnome-keyring
Classification: Core
Component: General
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-03-30 11:31 UTC by Magnun Leno
Modified: 2021-06-18 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A small part of implementation (2.80 KB, patch)
2010-09-11 20:46 UTC, Stef Walter
none Details | Review

Description Magnun Leno 2010-03-30 11:31:57 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.
Comment 1 Stef Walter 2010-09-11 20:45:55 UTC
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.
Comment 2 Stef Walter 2010-09-11 20:46:45 UTC
Created attachment 170041 [details] [review]
A small part of implementation
Comment 3 André Klapper 2021-06-18 13:52:43 UTC
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.