The better way is to have a new environment setting, let's call it "WINM" (don't use "WINDOWMANAGER", it's already used by some system scripts and will confuse some of them)... You just need to add a line to /etc/profile, like this: ... export WINM=kde ... (and don't forget "export") Every user can customize this setting in his very own ~/.profile Now, you just need to change the /usr/X11/lib/X11/xinit/xinitrc script... I attached mine, that works with kde, fvwm2, fvwm, afterstep and twm, but it's very easy to extend (even if you're not used to shell scripts)... I even made a little script called "x", which provides you with a menu (using dialog) with the different windowmanagers... you choose one, and the script sets WINM="afterstep", for example, and then makes "startx"... I have to retrieve it from my very own Linux box, which is on another network (and there's no communication between 'em... so, if have to go upstairs ;-) - I'll send it this afternoon, ok ? Pascal l'irréductible Linuxien P.S.: don't forget to do some environment settings: in /etc/profile, add the lines: export KDEDIR=/opt/kde export PATH=$PATH:$KDEDIR/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KDEDIR/lib -----Original Message----- From: alexser@idt.net <alexser@idt.net> To: suse-linux-e@suse.com <suse-linux-e@suse.com> Date: mercredi 1 avril 1998 07:19 Subject: [S.u.S.E. Linux] How to set a different WM? Hi! I am a new user of Linux and S.u.S.E having just installed it yesterday. Now I am trying to find a way to change the default Window Manager to KDE. Could someone tell me which file should be changed and how? Also what should be done when I want to upgrade the version of KDE to a new one? Thank you in advance for your help. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e </PRE> <PRE> #!/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/Xresources sysmodmap=/usr/X11R6/lib/X11/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 some nice programs # xclock -geometry 50x50-1+1 & # xterm -geometry 80x50+494+51 & # xterm -geometry 80x20+494-0 & if [ -n "$WINM" ]; then case "$WINM" in kde) exec startkde;; fvwm2) exec fvwm2;; fbwm) exec fvwm;; afterstep) exec afterstep;; *) exec twm esac else exec twm fi