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.

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



Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
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