Click to See Complete Forum and Search --> : Configuring xinit for other window managers


JavaCowboy
03-14-2002, 11:37 PM
I presently have WindowMaker as my default window manager, but I'd be interested in using other window managers as the need arises.

What lines would I need to add to /etc/X11/xinitrc for Gnome and KDE should I wish to boot into either one of them?

demetrius
03-14-2002, 11:44 PM
Dont edit the default xinitrc file. A file called .xinitrc placed in your home directory will override the settings in the default file when you 'startx'.
To start gnome you'd put exec gnome-session, for KDE it is exec startkde.
If you use xdm/kdm/gdm and boot straight to X the file you want to override is Xsession and and you'd do that with a file called .xsession in your home directory. The commands to start Gnome and KDE are the same, but you dont need the 'exec'. Also, the .xsession file will need to be set as executable for it to work.

[ 14 March 2002: Message edited by: demetrius ]

z0mbix
03-15-2002, 06:02 AM
Slackware also has xwmconfig to do this too. :)

See here (http://www.slackware.com/book/index.php?source=x1637.html).

[ 15 March 2002: Message edited by: cheeky_zombie ]

JasonC
03-15-2002, 02:26 PM
I have several xinitrc files. xinitrc.wmaker, xinitrc.fluxbox. I just use a symlink called xinitrc to whichever I want to use.