Re: kdm window manager selection...
>Does anyone know how I can get the window-manager selection combo box on
>the kdm screen functioning?
I've had some luck. It seems to depend on the proper configuration of
three files.
For the /etc/kde/kdmrc.in try...
# KDE Config File
[KDMDESKTOP]
BackgroundColor=#00a5c6
FancyBackGround=false
BackgroundPicture=/usr/local/kde/share/wallpapers/bluegrnt.jpg
BackGroundPictureTile=1
[KDM]
SortUsers=true
#Users=root;johndoe
NoUsers=sync;halt;reboot;shutdown;mail;
GreetString=Welcome to [HOSTNAME]
UserView=false
#ShutdownButton=RootOnly
ShutdownButton=ConsoleOnly
FailFont=helvetica,12,5,iso-8859-1,75,0
GreetFont=charter,24,5,iso-8859-1,50,0
StdFont=Helvetica,12,5,iso-8859-1,50,0
SessionTypes=enlightenment;kde;fvwm2;fvwm;failsafe;
GUIStyle=Windows
My /etc/X11/window-managers looks like...
/usr/X11R6/bin/enlightenment
/usr/X11R6/bin/fvwm2
/usr/X11R6/bin/twm
/usr/X11R6/bin/wmaker
/usr/X11R6/bin/olvwm
/usr/X11R6/bin/fvwm95
/usr/X11R6/bin/olwm
/usr/X11R6/bin/kde
/usr/X11R6/bin/mwm
Last is the /etc/X11/Xsession file. I believe KDE installs it's own and I've
seen the deb packages (from ftp.kde.org) not install it correctly. If this
happens then the window manager selection doesn't work. Good luck. j-m.
#!/bin/sh
#
# /etc/X11/Xsession
#
# global Xsession file -- used by both xdm and xinit (startx)
# 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
optionfile=/etc/X11/Xsession.options
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 $optionfile; then
if [ -x /usr/bin/X11/xterm ]; then
exec xterm -geometry 80x24+0+0
else
exit
fi
fi
;;
esac
;;
esac
if [ -d $sysresources ]; then
if [ $(echo $sysresources/*) != "$sysresources/*" ]; then
for resourcefile in $sysresources/*; do
xrdb -merge $resourcefile
done
fi
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if grep -q ^allow-user-resources $optionfile; then
if [ -f $usrresources ]; then
xrdb -merge $usrresources
fi
fi
if grep -q ^allow-user-modmap $optionfile; then
if [ -f $usrmodmap ]; then
xmodmap $usrmodmap
fi
fi
if [ -x $startup ] && grep -q ^allow-user-xsession $optionfile; then
exec $startup
else
[ -x /usr/bin/X11/xterm ] && 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
[ -x /usr/bin/X11/twm ] && exec twm
fi
Reply to: