From owner-freebsd-questions@FreeBSD.ORG Mon Feb 26 02:49:52 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF04516A409 for ; Mon, 26 Feb 2007 02:49:52 +0000 (UTC) (envelope-from tl32@next.online.no) Received: from mail43.e.nsc.no (mail43.e.nsc.no [193.213.115.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6C51213C4BE for ; Mon, 26 Feb 2007 02:49:51 +0000 (UTC) (envelope-from tl32@next.online.no) Received: from [62.16.181.21] (062016181021.customer.alfanett.no [62.16.181.21]) (authenticated bits=0) by mail43.nsc.no (8.13.8/8.13.5) with ESMTP id l1Q0JvqT006079 for ; Mon, 26 Feb 2007 01:19:58 +0100 (CET) Message-ID: <45E227C8.7010409@next.online.no> Date: Mon, 26 Feb 2007 01:20:24 +0100 From: Tore Lund User-Agent: Thunderbird 1.5.0.9 (X11/20061228) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <45E0C941.2030203@gmail.com> <20070226094300.5f40b710@localhost> <45E21B90.7060102@gmail.com> <45E22386.4090606@netscape.net> In-Reply-To: <45E22386.4090606@netscape.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: how to run root cmds when starting xorg? 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: Mon, 26 Feb 2007 02:49:52 -0000 Tore Lund wrote: > The startup script is /usr/X11R6/lib/X11/xdm/Xsetup_0. You may also > want to have a look at /usr/X11R6/lib/X11/xdm/Xsession. This latter > file will call up ~/.xsession, which is where we normally put commands > at the beginning of an X session called up through xdm. What I do in > that file is to call nvidia-settings and display a background image. I > guess ~/.xsession is the right place to put a kldload - this file may be > simply a symlink to .xinitrc (if the setup you want is in this file). Correction: The file where I call nvidia-settings and display a background image is /usr/X11R6/lib/X11/xdm/Xsetup_0. -- Tore