[Pkg-utopia-maintainers] Bug#681241: dbus-x11: prevent dbus-launch if it is already started

Simon McVittie smcv at debian.org
Thu Jul 12 15:02:12 UTC 2012


On 11/07/12 17:42, Panayiotis Karabassis wrote:
> I wanted to have access to the gnome-keyring in my awesome-wm session. Hence I
> added "gnome-keyring-daemon --start" to my .xsessionrc. This however did not
> work (for example subversion would hang while accessing its key) because
> -apparently- gnome-keyring needs DBus to be running when the "--start" command
> is executed.

.xsessionrc isn't the right place to do this. I don't know where is, but
you're likely to run into problems with activated session services:

* activated session services are child processes of the session
  dbus-daemon
* so, activated session services inherit environment variables from
  the session dbus-daemon
* most scripts in /etc/X11/Xsession.d set environment variables
* ... so if you start dbus-daemon too early, it will miss out on
  environment variables that are set after it starts (see Launchpad
  bugs 807614 and 809900)

> Adding gnome-keyring --start to the $STARTUP variable also does not work,
> because certain application such as ssh-agent mistakenly think that this is a
> non-gnome-keyring session, and start themselves.

I would suggest doing whatever gnome-session does to get a
gnome-keyring. I think the equivalent is starting gnome-keyring just
before awesome, from your ~/.xsession (not .xsessionrc).

Regards,
    S





More information about the Pkg-utopia-maintainers mailing list