On Mon, 2005-10-24 at 21:11 -0600, Dennis J Perkins wrote:
> I've found that gdm doesn't call .xinitrc for some reason, so
> dbus-launch never runs.
> 

Ah, you're using GDM to start Gnome - I'd missed that. In that case, try
the attached patch, which modifies GDM's Xsession file to run
dbus-launch as a wrapper around whatever command it's running (usually
gnome-session). That's what I use, and I find DBUS_SESSION_BUS_ADDRESS
is set in any xterm I open.

Simon.
diff -Naur gdm-2.8.0.5/config/Xsession.in gdm-2.8.0.5-patch/config/Xsession.in
--- gdm-2.8.0.5/config/Xsession.in	2005-07-19 19:53:41.000000000 +1200
+++ gdm-2.8.0.5-patch/config/Xsession.in	2005-10-12 22:33:22.000000000 +1300
@@ -224,6 +224,14 @@
   fi
 fi
 
+# add dbus-launch if found
+dbuslaunch="`gdmwhich dbus-launch`"
+if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
+    command="$dbuslaunch --exit-with-session $command"
+elif [ -z "$dbuslaunch" ] ; then
+    echo "$0: dbus-launch not found!"
+fi
+
 # add ssh-agent if found
 sshagent="`gdmwhich ssh-agent`"
 if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then

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