Re: gnome-keyring Getting default keyring name



On 2011-11-18 16:57, Alberto Mardegan wrote:
> Hi all,
>   I'm running into a problem in getting the default keyring name. I'm
> using Ubuntu 11.10, which ships GNOME keyring 3.2.1.
> 
> The gnome_keyring_get_default_keyring_sync() function returns a NULL
> string for the keyring (and no error).
> 
> But when I store some passwords and specify NULL as the keyring to be
> used, they end up into the "login" keyring. This is a problem, because
> when I want to find them back, I compare the "keyring" field from the
> GnomeKeyringFound structure (which is "login") with the name of the
> keyring I'm using (NULL) and they don't match.
> 
> I would expect the gnome_keyring_get_default_keyring_sync() to return me
> "login", then.
> 
> To me this sounds like a bug, but I'd like to ask for some more
> competent opinion before filing one. :-)

Looks like a bug.

Internally in the daemon, if no default keyring is explicitly set, we
automatically choose the 'login' keyring. Perhaps something there's a
regression in this logic and that choice is not being reflected in
what's returned to gnome_keyring_get_default_keyring_sync().

Could you file a bug?

Cheers,

Stef


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]