Starting DBus from gnome-session instead of Xsession
Hi,
The session DBus in Debian Xsessions is currently started by
/etc/X11/Xsession.d/75dbus_dbus-launch if the use-session-dbus option
is set.
Newer gnome-session will spawn a session DBus automatically if none has
been started.
If gnome-session launches DBus, DBus will inherit env from
gnome-session which is handy for gnome-keyring for example.
I suspect we wouldn't suffer from the sound issues (the desktop sounds
are not working bugs) would we be moving to launch DBus from
gnome-session, and I think this is what we should aim to do.
I personally think it makes a lot of sense to launch DBus from
gnome-session; what I wonder about is how we're going to switch to this
setup.
Ubuntu plans to fix this via a patch to the dbus Xsession snippet to
avoid starting DBus when running GNOME session; see Ubuntu #62163 and
<http://librarian.launchpad.net/7170382/dbus_1.0.2-1ubuntu34.patch>.
It's not trivial to know whether we're really in a GNOME session
because:
- from the PoV of gdm, there are a couple of GNOME sessions, and the
"Default" session, which will launch x-session-manager which might or
might not gnome-session
- sessions can be started via startx and/or various other ways
Note: there's currently an upstream bug that gnome-session does not
wait on DBus enough; see GNOME bug #395488.
--
Loïc Minier
Reply to: