Re: .xsession problem with WDM amd/or WindowMaker
-----BEGIN PGP SIGNED MESSAGE-----
On Sat, 18 Sep 1999, Salman Ahmed wrote:
> Do I have to start up WindowMaker from my .xsession file (as
> I do for RedHat) or is it enough to rely on
> /etc/X11/window-managers ?
Yes, you do have to run the window manager explicitly if you use an
.xsession file.
You can have your .xsession use /etc/X11/window-managers, though. Just
place this at the bottom of your .xsession (code shamelessly ripped from
/etc/X11/Xsession)
#### Start code ####
if [ -e /etc/X11/window-managers ]; then
for i in `sed 's/#.*//' /etc/X11/window-managers`; do
if [ -x $i ]; then
realstartup=$i
break
fi
done
elif [ -x /usr/bin/x-window-manager ]; then
realstartup=x-window-manager
fi
if [ -z "$realstartup" ]; then
if [ -x /usr/bin/x-terminal-emulator ]; then
realstartup=x-terminal-emulator
else
# fatal error
exec > /dev/tty
echo -n ".xsession: unable to start X session: "
echo "no window managers, and no terminal emulators found."
exit 1
fi
fi
exec $realstartup
##### End code #####
- --
finger for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBN+PMp77M/9WKZLW5AQGR8gQAgDGkGA7kIA9WmQMeoGIUhYQd+PL5wSlV
MtkOxMXOJ9PqN9G3rzSmgC0ZqdlwcR/pyL18+lyq9J5DMbWg0bz7l4Pm0UMV6wrc
Q95ZJikSqFwyokjLduGb2r+y0Xv8KmJ7rbpJ/tdIeKk3hV3L0lWWy4WGO60UaAvg
4XVYFq8SPzc=
=WVyF
-----END PGP SIGNATURE-----
Reply to: