On 6/30/06, Simon Geard <[EMAIL PROTECTED]> wrote:
On Thu, 2006-06-29 at 10:37 -0700, Dan Nicholson wrote:
> I'm not familiar with kdm, but it's pretty simple to wrap the session
> with dbus-launch with gdm.

What's the preferred approach for gdm? A few months back, I raised a bug
on gdm asking them to modify their Xsession file to invoke
dbus-launcher, the same way it currently handles ssh-agent. Despite
having a patch provided, they rejected this on the grounds that starting
a dbus session was something distros were responsible for, and which gdm
didn't want to deal with.

Putting it in the same spot as ssh-agent looked like the right
approach to me. This is where RedHat does it. But doing what's
mentioned in the book now by adding it to the .desktop in
/usr/share/xsessions is also simple, IMO.

In any case, my current approach is to create the following script which
gdm will invoke from the existing Xsession.

# /etc/X11/xinit/xinitrc.d/dbus-launch
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    ## if not found, launch a new one
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-BUS per-session daemon address is: " \
         $DBUS_SESSION_BUS_ADDRESS"
fi

That looks clever and pretty robust.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to