GNOME Bugzilla – Bug 429518
Gmail account settings not savec
Last modified: 2007-10-06 02:39:54 UTC
Please describe the problem: Gmail accounts settings are always asked, stored into the keyring but never retrieved. The problem comes from the fact that the gmail_account_token in gconf is always 0. Steps to reproduce: 1. click on the gmail button in people 2. give your account settings 3. go to 1. Actual results: not much apparently Expected results: have something more interesting than a login prompt over and over Does this happen every time? yes Other information: The problem come from the fact that the token returned from gnomekeyring create is a long and the gconf_bridge.set refuse to set it. Does this work for someone ? Or is it an API change somewhere ? I run pygtk from ubuntu feisty (2.18.0) and gimmie trunk. Here is a patch that solve the problem for me : Index: gimmie_gmail.py =================================================================== --- gimmie_gmail.py (révision 396) +++ gimmie_gmail.py (copie de travail) @@ -136,7 +136,7 @@ gnomekeyring.ITEM_GENERIC_SECRET, "Gimmie Gmail account information", dict(), ";".join(secret), True) - gconf_bridge.set("gmail_keyring_token", token) + gconf_bridge.set("gmail_keyring_token", int(token)) self.emit("changed") except gnomekeyring.Error: print " !!! Unable to securely store GMail account details"
Created attachment 95673 [details] [review] make GMail keyring working don't know why it shouldn't get into SVN :-)
Thanks for taking the time to report this bug. The patch worked for me so i made an attachment with the patch file. But in order for the patch to work it is necessary to install the latest python-libgmail (took the cvs). So, if you want GMail access you python-libgmail from CVS: cvs -d:pserver:anonymous@libgmail.cvs.sourceforge.net:/cvsroot/libgmail login cvs -z3 -d:pserver:anonymous@libgmail.cvs.sourceforge.net:/cvsroot/libgmail co -P libgmail cd libgmail sudo python setup.py install
Fixed in SVN. Thanks!
I'll be uploading the latest SVN of libgmail soon.