make startwm.sh simpler and added comments

ulab-original
jsorg71 16 years ago
parent a34ca6793a
commit e71b3012d5

@ -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
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 # change PATH to be what your environment needs usually what is in
#if [ "'which fvwm95'" != "" ]; then # /etc/environment
# fvwm95 #PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
# exit 0 #export PATH=$PATH
#fi
# fall back on xterm for WindowManager in $SESSIONS
which xterm do
if [ $? -eq 0 ]; then which $WindowManager
xterm if test $? -eq 0
then
echo "Starting $WindowManager"
$WindowManager
exit 0 exit 0
fi fi
done
exit 1

Loading…
Cancel
Save