From owner-freebsd-questions@FreeBSD.ORG Wed Aug 10 20:31:02 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 061BF16A41F for ; Wed, 10 Aug 2005 20:31:01 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37E5343D45 for ; Wed, 10 Aug 2005 20:30:59 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from beatrix.daedalusnetworks.priv (host4.bedc.ondsl.gr [62.103.39.228]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j7AKUvtK011379; Wed, 10 Aug 2005 23:30:58 +0300 Received: from beatrix.daedalusnetworks.priv (localhost [127.0.0.1]) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3) with ESMTP id j7AKUvQ7013217; Wed, 10 Aug 2005 23:30:57 +0300 (EEST) Received: (from keramida@localhost) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3/Submit) id j7AKUtVt013216; Wed, 10 Aug 2005 23:30:55 +0300 (EEST) Date: Wed, 10 Aug 2005 23:30:55 +0300 From: Giorgos Keramidas To: Gary Kline Message-ID: <20050810203055.GA13202@beatrix.daedalusnetworks.priv> References: <20050810062920.GA88239@thought.org> <20050810070720.GN70957@pcwin002.win.tue.nl> <20050810120443.GC24468@beatrix.daedalusnetworks.priv> <20050810200646.GC92722@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050810200646.GC92722@thought.org> Cc: 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:31:02 -0000 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. - Giorgos