76 lines
1.2 KiB
Plaintext
76 lines
1.2 KiB
Plaintext
![]() |
#!/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
|
|||
|
;;
|
|||
|
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
|
|||
|
|