GNOME Bugzilla – Bug 389984
After login,logout,login deskbar gets stale environment variables
Last modified: 2007-05-18 01:59:17 UTC
If you login to a GNOME session, then logout, then immediately login again, during this second session many crucial environment variables, such as DBUS and GnomeKeyring socket paths, are stale: they still have the values corresponding to the old session. This happens when bonobo-activation-server, for some reason (e.g. it still has a registered service), doesn't quit on logout, and so next time b-a-s launches deskbar, deskbar inherits the environment of b-a-s, which hasn't changed since the last session. The solution is to add the following attribute[1] to the applet factory in the .server file: <oaf_attribute name="bonobo:environment" type="stringv"> <item value="DBUS_SESSION_BUS_ADDRESS"/> <item value="GNOME_KEYRING_SOCKET"/> <item value="GPG_AGENT_INFO"/> <item value="SESSION_MANAGER"/> </oaf_attribute> [1] as documented in http://developer.gnome.org/doc/API/2.0/bonobo-activation/attribute-tag.html
Thanks for the fix !
Applied to SVN.
*** Bug 366897 has been marked as a duplicate of this bug. ***
I forgot about the ssh agent variables; could please add them to the list? * SSH_AGENT_PID * SSH_AUTH_SOCK Yeah, I know, this b-a-s system sucks, but it used to be worse.. :P
Fixed :)
*** Bug 432146 has been marked as a duplicate of this bug. ***
*** Bug 439306 has been marked as a duplicate of this bug. ***