Source

python-keyring-lib-mq / gnome_installed_but_unavailable

Full commit
# HG changeset patch
# Parent 11ac4e73b881d06d4cada42d77251ae5a391edb8
Handling case where Gnome and Qt are installed but X11 isn't running

diff -r 11ac4e73b881 keyring/backend.py
--- a/keyring/backend.py	Sat Jan 29 14:47:26 2011 -0600
+++ b/keyring/backend.py	Sat Jan 29 14:57:40 2011 -0600
@@ -127,6 +127,8 @@
     def supported(self):
         try:
             import gnomekeyring
+            if not gnomekeyring.is_available():
+                return -1
         except ImportError:
             return -1
         else: