Since dbus has been used to launch gnome-session and also its children 
in gnome 2.16
/usr/dt/config/Xinitrc.tjds needs to be updated so that TJDS in neveda 
will work
accordingly.

The changes are made to launch gnome-session using dbus-launch.
The patch will only apply to the HEAD of  tsoljdslabel after it has been 
branched.


$ diff -u Xinitrc.tjds.orig Xinitrc.tjds     
--- Xinitrc.tjds.orig   2006-11-15 16:02:40.590300000 +0000
+++ Xinitrc.tjds        2006-11-15 16:09:29.894036000 +0000
@@ -42,6 +42,22 @@
     xrdb -merge $HOME/.Xdefaults        # Load Users X11 resource database
 fi
 
-echo "Starting Trusted GNOME"
+/usr/bin/linc-cleanup-sockets
 
-exec /usr/bin/gnome-session --trusted-session
+command="/usr/bin/gnome-session --trusted-session"
+
+# start gnome-session through dbus-launch if found
+if [ -x "/usr/bin/dbus-launch" -a -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
+    command="/usr/bin/dbus-launch --exit-with-session $command"
+else
+    echo "$0: dbus-launch not found."
+fi
+
+if [ -x "/usr/bin/ssh-agent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
+    command="/usr/bin/ssh-agent -- $command"
+else
+    echo "$0: ssh-agent not found."
+fi
+
+echo 'Starting gnome-session'
+exec $command


Reply via email to