Lock on Idle Doesn't Work in Python Bindings

Asked by Magnun Leno

First of all I'd like to thank all you guys for this great OS.

Wile developing one of my applications I've faced 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?

I'm using Ubuntu 9.10, i386 architecture.
Best regards.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu libgnome-keyring Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.