Gtkvncviewer fails to start on keyring error

Bug #1250461 reported by Luc
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gtkvncviewer
New
Undecided
Unassigned

Bug Description

I recently changed my password (passwd), then got keyring trouble. Gtkvncviewer does not start anymore at all... So I modified the python script a bit. Here's a patch if you care to fix it:

/usr/share/gtkvncviewer $ git diff gtkvncviewer-old.py gtkvncviewer.py
diff --git a/gtkvncviewer-old.py b/gtkvncviewer.py
index dd8c16a..ba53edb 100755
--- a/gtkvncviewer-old.py
+++ b/gtkvncviewer.py
@@ -113,7 +113,12 @@ class GtkVncViewer:

                #read stored credentials
                GCONF_AUTH_KEY = "/apps/gtkvncviewer"
- keyring = gnomekeyring.get_default_keyring_sync()
+ try:
+ keyring = gnomekeyring.get_default_keyring_sync()
+ except:
+ username = None
+ password = None
+
                gconfclient = gconf.client_get_default()
                gconfclient.add_dir (GCONF_AUTH_KEY,
                        gconf.CLIENT_PRELOAD_RECURSIVE)
@@ -132,6 +137,8 @@ class GtkVncViewer:
                                        password = None
                                        auth_token = 0
                                        print _("gnome-keyring access denied")
+ except:
+ print _("Keyring error")
                                else:
                                        username, password = secret.split('\n')
                        else:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.