![kueller](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_X11@4989 504e572c-2e33-0410-9681-be2bf7408885
82 lines
1.3 KiB
Bash
82 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#Startup Script für xdm
|
|
#(c) Rainmaker MultiMedia OHG
|
|
#
|
|
#$Author$
|
|
#$Date$
|
|
#$Revision$
|
|
#
|
|
#$Log$
|
|
#Revision 1.3 2002/06/12 11:26:12 hkueller
|
|
#Anpassungen an KDE3.x
|
|
#
|
|
#Revision 1.2 2001/10/06 23:28:32 kueller
|
|
#Startup für Haze und WindowMaker eingebaut
|
|
#
|
|
#Revision 1.1.1.1 2001/09/23 13:25:09 kueller
|
|
#Neustart wg. Datenverlust
|
|
#
|
|
#Revision 1.1.1.1 2001/08/14 18:55:19 kueller
|
|
#X11 Add Ons
|
|
#
|
|
#
|
|
|
|
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
|
|
do
|
|
if ( cp /dev/null "$errfile" 2> /dev/null )
|
|
then
|
|
chmod 600 "$errfile"
|
|
exec > "$errfile" 2>&1
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -f /etc/profile ]; then
|
|
source /etc/profile
|
|
fi
|
|
|
|
case $# in
|
|
1)
|
|
case $1 in
|
|
failsafe)
|
|
exec xterm -geometry 80x24-0-0
|
|
;;
|
|
kde3)
|
|
KDEDIR=/opt/kde
|
|
export KDEDIR
|
|
touch $HOME/.kdelog
|
|
/opt/kde/bin/startkde
|
|
;;
|
|
kde4)
|
|
KDEDIR=/opt/kde
|
|
export KDEDIR
|
|
touch $HOME/.kdelog
|
|
/opt/kde/bin/startkde
|
|
;;
|
|
xfce)
|
|
/opt/xfce/bin/xfwm
|
|
;;
|
|
WMaker)
|
|
/opt/WindowMaker/bin/wmaker
|
|
;;
|
|
Haze)
|
|
xscreensaver -no-splash -lock-mode &
|
|
/opt/Haze/bin/hazewm
|
|
;;
|
|
*)
|
|
startup=$HOME/.xsession
|
|
resources=$HOME/.Xresources
|
|
|
|
if [ -s "$startup" -a -x "$startup" ]; then
|
|
exec "$startup"
|
|
else
|
|
if [ -r "$resources" ]; then
|
|
xrdb -load "$resources"
|
|
fi
|
|
exec xsm
|
|
fi
|
|
;;
|
|
esac
|
|
esac
|
|
|