After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 389984 - After login,logout,login deskbar gets stale environment variables
After login,logout,login deskbar gets stale environment variables
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.17.x
Other Linux
: Urgent major
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
: 366897 432146 439306 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-27 11:32 UTC by Gustavo Carneiro
Modified: 2007-05-18 01:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gustavo Carneiro 2006-12-27 11:32:24 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
Comment 1 Raphael Slinckx 2006-12-29 21:21:35 UTC
Thanks for the fix !
Comment 2 Raphael Slinckx 2007-01-07 19:18:55 UTC
Applied to SVN.
Comment 3 Gustavo Carneiro 2007-01-14 12:30:33 UTC
*** Bug 366897 has been marked as a duplicate of this bug. ***
Comment 4 Gustavo Carneiro 2007-01-14 12:34:46 UTC
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
Comment 5 Raphael Slinckx 2007-01-24 18:32:57 UTC
Fixed :)
Comment 6 palfrey 2007-04-26 23:22:35 UTC
*** Bug 432146 has been marked as a duplicate of this bug. ***
Comment 7 Pedro Villavicencio 2007-05-18 01:59:17 UTC
*** Bug 439306 has been marked as a duplicate of this bug. ***