diff options
Diffstat (limited to 's2u.sh')
-rwxr-xr-x | s2u.sh | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -6,32 +6,12 @@ # Version : $Id$ # Author : Frederic Lepied # Created On : Sat Jul 31 01:03:37 2004 -# Purpose : launch the dbus client attaching it to an -# exisiting dbus session or launching a new one to -# attache itself to. +# Purpose : launch the dbus client attaching it to +# system bus #--------------------------------------------------------------- CURR_DISPLAY=`LC_ALL=C xdpyinfo | grep 'display' | awk '{print $4}'` -f="/tmp/dbus-$USER-xsession$CURR_DISPLAY" - -vars() { - if [ -f "$f" -a -O "$f" ]; then - . "$f" - fi -} - -vars - -if [ -z "$DBUS_SESSION_BUS_PID" -o ! -d "/proc/$DBUS_SESSION_BUS_PID" ]; then - F=`mktemp /tmp/dbus.XXXXXX` - chmod 600 $F - dbus-launch --sh-syntax --exit-with-session > $F - rm -f "$f" - mv -f $F "$f" - vars -fi - exec s2u --daemon=yes # s2u.sh ends here |