Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2004 11:14:11 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Chris <racerx@makeworld.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: KDE vs Gnome
Message-ID:  <4108CDF3.2020505@ukug.uk.freebsd.org>
In-Reply-To: <41085833.3020408@makeworld.com>
References:  <20040729014700.41645.qmail@web14106.mail.yahoo.com> <41085833.3020408@makeworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris wrote:
> Sandbox Video Productions wrote:
>> IF i install both gnome & kde. how do i choose which
>> one i want to start up. It seem that it only starts
>> the GUI that was installed last.
>> 
>> 
>> 		
>> __________________________________
>> Do you Yahoo!?
>> New and Improved Yahoo! Mail - Send 10MB messages!
>> http://promotions.yahoo.com/new_mail 
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>> 
> 
> Depends.
> 
> 1. Are you using KDM? If so, you make your choice at the login menu.
> 2. If not above, edit .xinitrc and comment out one IE:
> 
> exec startkde
> #gnome-session
> #exec startxfce4
> #exec startfluxbox
> 
> In the above example, KDE starts after entering startx
> 
> #exec startkde
> gnome-session
> #exec startxfce4
> #exec startfluxbox
> 
> In the above example, Gnome starts ater entering startx
> 

Even easier, if you want to avoid editing ~/.xinitrc everytime you want 
to change between the two, you could add a case statement in ~/.xinitrc 
to handle args to startx(1):

case "$1" in
	-k)	exec startkde
		;;
	-g)	gnome-session
		;;
	*)	exec startkde
		;;
esac

The '*' case being the default if there are no args.

For this to work you have to hack /usr/X11R6/bin/startx and change the line

defaultclient=/usr/X11R6/bin/xterm

to

defaultclient=""

because if you specify any (client) args then startx(1) just starts X 
and an xterm - no window manager.

The last time I used multiple WMs was in XFree86 3.x and I'm certain I 
didn't have to hack startx so it looks like the behaviour has changed, 
or it maybe that it was just so long ago that I've forgotten :-)

See startx(1) and xinit(1) for details of the default startup behaviour.

HTH

Regards,

Mark





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4108CDF3.2020505>