From owner-freebsd-questions@FreeBSD.ORG Sun Apr 17 07:42:39 2005 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 0DA0216A4D1 for ; Sun, 17 Apr 2005 07:42:39 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EB4943D31 for ; Sun, 17 Apr 2005 07:42:38 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.50) id 1DN4QN-0005ul-Ap; Sun, 17 Apr 2005 08:42:37 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.50) id 1DN4QM-00052j-Gb; Sun, 17 Apr 2005 08:42:34 +0100 Date: Sun, 17 Apr 2005 08:42:34 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Danny Pansters In-Reply-To: <200504162047.16730.danny@ricin.com> Message-ID: References: <200504161944.52060.danny@ricin.com> <200504162047.16730.danny@ricin.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -2.8 X-Spam-Level: -- cc: freebsd-questions@freebsd.org Subject: Re: KDE not starting. Cannot start kdeinit 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: Sun, 17 Apr 2005 07:42:39 -0000 On Sat, 16 Apr 2005, Danny Pansters wrote: > IIRC exec used to be needed for some reason, but that's been a while, merely > startkde (which is just a shell script) will do. The reasoning is in the man page for startx(1): [[ The .xinitrc is typically a shell script which starts many clients according to the user's preference. When this shell script exits, startx kills the server and performs any other session shutdown needed. Most of the clients started by .xinitrc should be run in the back- ground. The last client should run in the foreground; when it exits, the session will exit. People often choose a session manager, window manager, or xterm as the ''magic'' client. ]] Since the session stops when the .xinitrc process dies, you can either launch startkde from within the shell script (in which case the .xinitrc script waits until startkde exits, then exits), or you can use "exec startkde" to replace the .xinitrc process with the startkde one. In either case the only difference is that leaving out the exec means you've got one additional shell process hanging around until you quit X. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 9287088 (with luck) http://ioctl.org/jan/ "I like oranges more than apples!?" - that's like comparing apples and oranges!