Re: Diff window managers for diff users
In article <[🔎] 34E6F896.2773@mail.infoave.net>,
David R Baker <dabaker@InfoAve.Net> wrote:
>If you and your wife log on as distinct users with distinct home
>directories, then you can have different ".xsession" files. This file,
>if present, will determine what window manager is used. There is a
>default one somewhere under /etc/X11 that is used if it not present.
Actually, that's not -quite- right. There's a file called
/etc/X11/Xsession which is always called to start your session, whether or
not you have a .xsession file. There's a lot of gunk in /etc/X11/Xsession
that you don't want in your .xsession file, so here's a .xsession file
that duplicates what happens by default:
#! /bin/sh
xterm -ls &
if [ -e /etc/X11/window-managers ]
then
for i in `sed 's/#.*//' /etc/X11/window-managers`
do
if [ -x $i ]
then
exec $i
fi
done
fi
if [ -x /usr/X11R6/bin/fvwm ]
then
exec fvwm
fi
exec twm
What this effectively says is
start an xterm
if /etc/X11/window-managers exists
try in turn to start each window manager listed there
if they all fail, but fvwm is installed,
try starting fvwm
if all else fails,
run twm
So, a useful .xsession file could just be:
#! /bin/sh
exec afterstep
...although some would undoubtedly add a "xterm -ls &" between those
two lines.
Remember to "chmod +x .xsession" !
--
Charles Briscoe-Smith
White pages entry, with PGP key: <URL:http://alethea.ukc.ac.uk/wp?95cpb4>
PGP public keyprint: 74 68 AB 2E 1C 60 22 94 B8 21 2D 01 DE 66 13 E2
PS: If my messages seem late or out-of-date, it's because I'm
communicating in batch mode via floppy-disk-net!
--
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: