Xsession (help)
Hi,
I am having a very frustrating time with my .xsession. I can login just
fine if I don't have a .xsession of my own, but if I copy the
/etc/X11/Xsession to my $HOME/.xsession, my console just hangs. After
this hanging, I have to reboot.
Here is what my Xsession looks like (the one I copy to $HOME/.xsession)
#! /bin/sh
#
# /etc/X11/Xsession
#
# This is the global Xsession file. It is used by both xdm and xinit.
# If /etc/environment is present, source it. It's useful to put default
# environment settings in this file, and then source it both here and in
# /etc/profile.
if [ -f /etc/environment ] ; then
. /etc/environment
fi
sysmodmap=/etc/X11/Xmodmap
usrmodmap=$HOME/.Xmodmap
sysresources=/etc/X11/Xresources
usrresources=$HOME/.Xresources
startup=$HOME/.xsession
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
case $# in
1)
case $1 in
failsafe)
if grep -q ^allow-failsafe /etc/X11/config
then
exec xterm -geometry 80x24-0-0
fi
;;
esac
esac
if [ -f $sysresources ]
then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]
then
xmodmap $sysmodmap
fi
if grep -q ^allow-user-resources /etc/X11/config
then
if [ -f $usrresources ]
then
xrdb -merge $usrresources
fi
fi
if grep -q ^allow-user-modmap /etc/X11/config
then
if [ -f $usrmodmap ]
then
xmodmap $usrmodmap
fi
fi
if [ -x $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
exec $startup
else
xterm -ls &
xterm -sb &
if [ -e /etc/X11/window-managers ]
then
for i in `sed 's/#.*//' /etc/X11/window-managers`
do
if [ -x $i ]
then
exec $i
fi
xsetroot -solid RoyalBlue
done
fi
if [ -x /usr/X11R6/bin/fvwm ]
then
exec fvwm
fi
exec twm
fi
Here is what my /etc/X11/config looks like:
obey-nologin
run-xconsole
xdm-start-server
start-xdm
use-sessreg
allow-user-resources
allow-user-modmap
allow-user-xsession
allow-failsafe
Please help.........Thnx Greg Green
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: