summaryrefslogtreecommitdiffstats
path: root/sesman/startwm.sh
blob: 3445c494312125eda10dc43fb36fbb60a8368248 (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
#!/bin/sh

# edit this file to run whatever window manager you want
# defaults to running kde

# for kde
if [ -d /opt/kde3/bin ]; then
  export PATH=/opt/kde3/bin:$PATH
fi
if [ -d /opt/kde/bin ]; then
  export PATH=/opt/kde/bin:$PATH
fi
which startkde
if [ $? -eq 0 ]; then
  startkde
  exit 0
fi
which kde
if [ $? -eq 0 ]; then
  kde
  exit 0
fi

# gnome
which gnome-session
if [ $? -eq 0 ]; then
  gnome-session
  exit 0
fi

# blackbox
#if [ "'which blackbox'" != "" ]; then
#  blackbox
#  exit 0
#fi

# fvwm95
#if [ "'which fvwm95'" != "" ]; then
#  fvwm95
#  exit 0
#fi

# fall back on xterm
which xterm
if [ $? -eq 0 ]; then
  xterm
  exit 0
fi