summaryrefslogtreecommitdiffstats
path: root/test/slim/xinitrc
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-06-30 09:11:31 +0200
committertnut <thierryn1 at hispeed dot ch>2010-06-30 09:11:31 +0200
commit6b34c7c0613393049edcb782407b5293491796cf (patch)
tree831d3a6d1f5921fe3b9bbde7be12d12ac269c488 /test/slim/xinitrc
parentb863c93fc8329443e1cff089f22e9755e7df90d6 (diff)
downloadnutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.gz
nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.bz2
nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.xz
nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.zip
slim dans test
Diffstat (limited to 'test/slim/xinitrc')
-rw-r--r--test/slim/xinitrc108
1 files changed, 108 insertions, 0 deletions
diff --git a/test/slim/xinitrc b/test/slim/xinitrc
new file mode 100644
index 000000000..62f4d752d
--- /dev/null
+++ b/test/slim/xinitrc
@@ -0,0 +1,108 @@
+# $Id: xinitrc,v 1.4 2008/05/13 17:33:40 install Exp install $
+# the following variable defines the session which is started if the user
+# doesn't explicitely select a session
+DEFAULT_SESSION=startede
+
+case $1 in
+xfce4)
+ exec startxfce4
+ ;;
+ede)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec startede
+ ;;
+
+openbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec openbox-session
+ ;;
+lxde)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec startlxde
+ ;;
+e16)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec starte16
+ ;;
+fluxbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec startfluxbox
+ ;;
+twindy)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec twindy
+ ;;
+fvwm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec fvwm
+ ;;
+jwm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec jwm
+ ;;
+twm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec twm
+ ;;
+icewm)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ icewmbg &
+ icewmtray &
+ exec icewm
+ ;;
+wmaker)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec wmaker
+ ;;
+blackbox)
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+ exec blackbox
+ ;;
+gnome)
+ exec gnome-session
+ exec dbus-launch --exit-with-session gnome-session
+ ;;
+mwm)
+ exec mwm
+ ;;
+*)
+ exec $DEFAULT_SESSION
+ ;;
+esac
+