summaryrefslogtreecommitdiffstats
path: root/extra/slim/xinitrc
blob: 62f4d752d0c257dd335898eb1bc65915684100bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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