Gentoo Archives: gentoo-user

From: Mike Mazur <mmazur@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
Date: Sun, 13 Dec 2009 22:03:12
Message-Id: 184110a70912131402v6eb946e3g2f9ced512206cd10@mail.gmail.com
In Reply to: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? by Mick
1 Hi,
2
3 I ran across this issue last night.
4
5 On Mon, Dec 14, 2009 at 02:30, Mick <michaelkintzios@×××××.com> wrote:
6 > If this is the case, am I right to assume that the files in
7 > /etc/X11/Sessions/* are not used anymore and the solution is to set up a local
8 > ~/.xinitrc file for launching the desired WM?
9
10 The scripts in /etc/X11/Sessions/ can still be used.
11
12 > I am muddled up because I have forever it seems used /etc/rc.conf to manage
13 > the XSESSION which xdm would pick from /etc/X11/Sessions/* to start different
14 > WMs.
15
16 At some point /etc/rc.conf was no longer being sourced. Instead,
17 setting the XSESSION variable in /etc/env.d is the correct way to do
18 it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:
19
20 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
21 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
22 ewarn "any executable. When you run startx, it will run this as the
23 login session."
24 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
25 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
26 ewarn "Here's an example of setting it for the whole system:"
27 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
28 ewarn " env-update && source /etc/profile"
29
30 So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
31 (I use Gnome) did the trick.
32
33 Hope that helps,
34 Mike
35
36
37 [1] http://gentoo-portage.com/AJAX/Ebuild/100485/View

Replies

Subject Author
Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? Mick <michaelkintzios@×××××.com>