From owner-freebsd-questions@FreeBSD.ORG Wed Aug 10 20:54:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 7872F16A420 for ; Wed, 10 Aug 2005 20:54:01 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A55643D55 for ; Wed, 10 Aug 2005 20:53:58 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.1/8.13.1) with ESMTP id j7AKrqPI093212; Wed, 10 Aug 2005 13:53:52 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.1/8.13.1/Submit) id j7AKrnAt093211; Wed, 10 Aug 2005 13:53:49 -0700 (PDT) (envelope-from kline) Date: Wed, 10 Aug 2005 13:53:49 -0700 From: Gary Kline To: Giorgos Keramidas Message-ID: <20050810205349.GE92722@thought.org> References: <20050810062920.GA88239@thought.org> <20050810070720.GN70957@pcwin002.win.tue.nl> <20050810120443.GC24468@beatrix.daedalusnetworks.priv> <20050810200646.GC92722@thought.org> <20050810203055.GA13202@beatrix.daedalusnetworks.priv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050810203055.GA13202@beatrix.daedalusnetworks.priv> User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19 years of service to the Unix community Cc: Gary Kline , freebsd-questions@freebsd.org Subject: Re: sorry for the idiot question, but.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 20:54:01 -0000 On Wed, Aug 10, 2005 at 11:30:55PM +0300, Giorgos Keramidas wrote: > On 2005-08-10 13:06, Gary Kline wrote: > >On Wed, Aug 10, 2005 at 03:04:43PM +0300, Giorgos Keramidas wrote: > >> On 2005-08-10 09:07, Stijn Hoop wrote: > >> > There is a way to start gnome using the 'startx' method but I don't > >> > know it. > >> > >> 1. Copy over /usr/X11R6/lib/X11/xinit/xinitrc to ~/.xinitrc and make > >> sure it's executable by at least you, the owner of the file. > >> > >> 2. Replace the final commands (that spawn "a few useful programs") with: > >> > >> exec gnome-session > >> > >> 3. Done > > > > I should've read all responces evidently! Giorgos, can I (dare I, > > can/should I) put my miscellanous commands into .xinitrc, or are these > > simply ignored by the parser? > > The .xinitrc file is a shell script that is executed by startx. All the > commands you put in there will be run, but watch out for one thing: you > are not allowed to start commands or programs that may "block" for any > amount of time. The commands of the .xinitrc shell script are executed > by a /bin/sh instance in the order they appear, so if you use: > > xterm > fluxbox > > then fluxbox will only start *after* xterm finishes. > > The solution to this minor "problem" is to start everything but the last > command in the background: > > xterm & > fluxbox > > To emphasize one more important aspect (that after the last command > exits, then the X session terminates too), I frequently prefix the last > command with "exec", as in: > > xterm & > exec fluxbox > > just as a tip to myself that when the last command exits X will exit too. > > > Also: can I use .xsession instead of .xinitrc? --I have several > > non-Gnome apps placed at various X+Y locations... > > The .xsession script is used by "login managers", like XDM, GDM or KDM > instead of .xinitrc. Only one of the two will run at any time. > Outstanding. thanks, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix