[Pkg-libvirt-maintainers] Bug#605685: Bug#605685: virt-manager: cannot save password (for a vnc connection)

dave b db.pub.mail at gmail.com
Mon Dec 6 12:36:23 UTC 2010


On 6 December 2010 20:28, Guido Günther <agx at sigxcpu.org> wrote:
> Hi Dave,
> On Fri, Dec 03, 2010 at 11:50:00PM +1100, dave b wrote:
>> On 3 December 2010 22:51, Guido Günther <agx at sigxcpu.org> wrote:
>> > On Fri, Dec 03, 2010 at 10:07:49PM +1100, dave b wrote:
>> >> On 3 December 2010 19:20, Guido Günther <agx at sigxcpu.org> wrote:
>> >> > On Fri, Dec 03, 2010 at 09:48:56AM +1100, dave b wrote:
>> >> >> I do have it installed...
>> >> > And python-gnomekeyring as well?
>> >>
>> >> Yes of course.
>> > Please check the current version in squeeze.
> Does the attached patch resolve the issue for you?

Yes, except I patched it manually and when I did this - it
segfaulted[0] on the first run (when I used it).
(It now saves my password and can fetch it).


(please forgive the indentation level mixing ;) ).

+++ keyring.py	2010-12-06 23:31:16.000000000 +1100
@@ -35,11 +35,17 @@
     def __init__(self):
         if haveKeyring:
             try:
-                if not("default" in gnomekeyring.list_keyring_names_sync()):
-                    gnomekeyring.create_sync("default", None)
+                #if not("default" in gnomekeyring.list_keyring_names_sync()):
+                #    gnomekeyring.create_sync("default", None)
                 self.keyring = gnomekeyring.get_default_keyring_sync()
                 if self.keyring == None:
                     logging.warning("Failed to create default keyring")
+		    self.keyring = 'default'
+		    try:
+		       gnomekeyring.create_sync(self.keyring, None)
+		    except gnomekeyring.AlreadyExistsError, e:
+		       print e
+
             except:
                 logging.warning(("Keyring unavailable: '%s'") %
(str((sys.exc_info())[0]) + " "  + str((sys.exc_info())[1])))
                 self.keyring = None



[0] - [78805.592363] python[14615]: segfault at 0 ip 00007f425bf89b09
sp 00007fff5b973000 error 4 in
libgvnc-1.0.so.0.0.1[7f425bf82000+22000]

2010-12-06 23:31:28,314 (config:627): Initializing keyring
2010-12-06 23:31:28,317 (keyring:42): Failed to create default keyring

Segmentation fault

Also my default keyring isn't called 'default', don't know if that
matters or not.





More information about the Pkg-libvirt-maintainers mailing list