make startwm.sh simpler and added comments

This commit is contained in:
jsorg71 2009-08-09 00:04:11 +00:00
parent a34ca6793a
commit e71b3012d5

View File

@ -1,48 +1,24 @@
#!/bin/sh #!/bin/sh
# edit this file to run whatever window manager you want # change the order in line below to run to run whatever window manager you
# defaults to running kde # want, default to kde
# for kde SESSIONS="startkde gnome-session startxfce4 xterm"
if [ -d /opt/kde3/bin ]; then
export PATH=/opt/kde3/bin:$PATH # change PATH to be what your environment needs usually what is in
fi # /etc/environment
if [ -d /opt/kde/bin ]; then #PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
export PATH=/opt/kde/bin:$PATH #export PATH=$PATH
fi
which startkde for WindowManager in $SESSIONS
if [ $? -eq 0 ]; then do
startkde which $WindowManager
if test $? -eq 0
then
echo "Starting $WindowManager"
$WindowManager
exit 0 exit 0
fi fi
which kde done
if [ $? -eq 0 ]; then
kde
exit 0
fi
# gnome exit 1
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