Sarin, thanks for the tip.
I've just had a look for .xinitrc and I do not appear to have one
I am not sure therefore what effect your script will have on my system.
digiot, your moving stuff around idea was something I was thinking about but then thought about the case statement in the REAL file. Your option is safer.
The curiosity gets worse - both solutions revolve around ~/.xinitrc but I DON'T HAVE ONE
What I actually tried was:
/etc/X11/xinitrc/xinit
-------------------------------------------------------------------------------------
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
case $1 in
xfce)
startxfce4
exit 0
;;
*)
startkde
exit 0
;;
esac
---------------------------------------------------------------------------------
I added the #Start the window manager bit. The standard script just calls THE window manager. I just wanted to build in choice rather than having to edit the file every time I wanted to use a different window manager to the rest of the family.