From owner-freebsd-questions@FreeBSD.ORG Thu Nov 5 21:49:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8755E106566B for ; Thu, 5 Nov 2009 21:49:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 47E9F8FC08 for ; Thu, 5 Nov 2009 21:49:47 +0000 (UTC) Received: from r55.edvax.de (port-92-195-97-236.dynamic.qsc.de [92.195.97.236]) by mx02.qsc.de (Postfix) with ESMTP id AB4C11EDE4; Thu, 5 Nov 2009 22:49:45 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nA5LnjbW001805; Thu, 5 Nov 2009 22:49:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 5 Nov 2009 22:49:44 +0100 From: Polytropon To: "Alexandre L." Message-Id: <20091105224944.a6ce3874.freebsd@edvax.de> In-Reply-To: <424233.42925.qm@web24816.mail.ird.yahoo.com> References: <20091105001628.3cd0319a.freebsd@edvax.de> <424233.42925.qm@web24816.mail.ird.yahoo.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Question Subject: Re: SLIM and XFCE4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2009 21:49:47 -0000 On Wed, 4 Nov 2009 23:01:19 -0800 (PST), "Alexandre L." wrote: > mmm. I don't know. > But with this config file, XFCE4 launch is OK (or seems OK). That may be possible, as well as correct. I have learned - many many years ago, so it may already have changed - that .xinitrc is a SHELL SCRIPT that is executed on X startup. So all the "rules" for shell scripts do apply, such as declaring the interpreter with the #! special comment. Furthermore, .xinitrc serves as a kind of "init process", so that the "exec" statement is needed to replace the .xinitrc process by the window manager. See that .xsession serves a similar process and needs a certain form so that programs that use it (e. g. xdm) do the right thing. My .xsession does look like this: #!/bin/csh source ~/.cshrc exec ~/.xinitrc It is needed so that xterms running csh inherit the settings from my .cshrc, and then .xsession continues running as .xinitrc, which finally runs as the window manager (here: WindowMaker, last line "exec wmaker"). But as I said, it may be handled completely differently today. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...