Cross Reference: SUNWtgnome-tsoljdslabel-01-dbus-launch.diff
xref
: /
solaris-desktop
/
patches
/
SUNWtgnome-tsoljdslabel-01-dbus-launch.diff
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
14437
N/A
diff -ruN
tsoljdslabel-0.6.3.orig/Xsession.tjds
tsoljdslabel-0.6.3.hacked/Xsession.tjds
14052
N/A
---
tsoljdslabel-0.6.3.orig/Xsession.tjds
2008-08-22 00:13:28.000000000 +0100
14437
N/A
+++
tsoljdslabel-0.6.3.hacked/Xsession.tjds
2008-09-19 21:32:10.153150000 +0100
14437
N/A
@@ -21,4 +21,16 @@
14052
N/A
14052
N/A
command=
/usr/dt/bin/Xsession
14052
N/A
14437
N/A
+# Save a copy of the user's SHELL value and restore after dbus-launch command
14437
N/A
+shell_saved=$SHELL
14437
N/A
+
14437
N/A
+# Tell dbus-launch we want the environment value in ksh compatible syntax
14437
N/A
+export SHELL=
/bin/ksh
14437
N/A
+eval `dbus-launch --exit-with-session --sh-syntax`
14437
N/A
+
14437
N/A
+# unset SHELL and restore user's value
14437
N/A
+unset SHELL
14437
N/A
+export SHELL=$shell_saved
14437
N/A
+
14052
N/A
+
14052
N/A
exec $command