Xinitrc and choosing a WM

From: nemo (nemo_at_localhost.com)
Date: 08/23/04


Date: Sun, 22 Aug 2004 20:50:01 -0400

hello all, hope i could get some input

I am trying to conditionalize my .xinitrc file so that if i type

$ startx kde
or
$ startx fluxbox

the appropriate WM gets started. I have seen examples around on the net
awhile back but I can't get it to work. The relavent section at
the bottom of my .xinitrc is

if [ "$1" = "kde" ]; then
        startkde
elif [ "$1" = fluxbox ]; then
        startfluxbox
else
        #choose some default
        startkde
fi

So as it stands the default action (else block) will happen ok. And i know
that 'startfluxbox' is the right command to use for fluxbox. The issue i
have is that whatever i type after startx gets processed by the startx
script, so i get an error that says something like "unknown option kde".
I'm pretty sure that this can be done in the .xinitrc file, but i have hit
a brickwall. Any advice would be appreciated.



Relevant Pages

  • Re: starting Idesk automatically in IceWM on Lenny
    ... Now create a brand new .xinitrc file in your home directory, ... be exactly the same as the .xsession file you made earlier, ... Server is already active for display 0 ... and manually start it by typing 'startx'. ...
    (Debian-User)
  • Re: Xinitrc and choosing a WM
    ... >$ startx fluxbox ... >I'm pretty sure that this can be done in the .xinitrc file, ... so that xinit interprets it as the name of a client startup file. ...
    (comp.os.linux.x)
  • Re: Xorg.0.log on accessible gnome install attempt
    ... I think the problem is that "startx" by default only starts a bare X ... I think you have to create a suitable .xinitrc file in your home ... directory to tell the X server that you want to run a Gnome session. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [kde-freebsd] KDE 3.2 + startx errors (dcopserver)
    ... Now when I 'startx' It hangs when Loading ... I added exec startkde to my .xinitrc file and ran ... >> Please check that the dcopserver program is running. ... >> I have tried running 'dcopserver' as usr and as root with no ...
    (freebsd-questions)
  • Re: Graphical tool for X session
    ... >> specific startup file, ... > startx thisprogram ... to start the environment I specify and avoid reading any .xinitrc file ... Sunrise in Stockholm today: 4:43 ...
    (alt.os.linux.suse)