From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 10:13:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A64916A4CE for ; Thu, 29 Jul 2004 10:13:57 +0000 (GMT) Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BE5943D58 for ; Thu, 29 Jul 2004 10:13:57 +0000 (GMT) (envelope-from mark@ukug.uk.freebsd.org) Received: from [127.0.0.1] (parish.gotadsl.co.uk [62.3.235.43]) by smtp.nildram.co.uk (Postfix) with ESMTP id B2DED25F4F9; Thu, 29 Jul 2004 11:13:47 +0100 (BST) Message-ID: <4108CDF3.2020505@ukug.uk.freebsd.org> Date: Thu, 29 Jul 2004 11:14:11 +0100 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (Windows/20040723) X-Accept-Language: en-gb, en-us MIME-Version: 1.0 To: Chris References: <20040729014700.41645.qmail@web14106.mail.yahoo.com> <41085833.3020408@makeworld.com> In-Reply-To: <41085833.3020408@makeworld.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Sandbox Video Productions cc: freebsd-questions@freebsd.org Subject: Re: KDE vs Gnome X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 10:13:57 -0000 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