Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
Date: Mon, 14 Dec 2009 12:02:02
Message-Id: 358eca8f0912140317k66ab4a9cy9aed1737af6bb678@mail.gmail.com
In Reply to: Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? by Mike Mazur
1 2009/12/13 Mike Mazur <mmazur@×××××.com>:
2
3 > I ran across this issue last night.
4 >
5 > At some point /etc/rc.conf was no longer being sourced. Instead,
6 > setting the XSESSION variable in /etc/env.d is the correct way to do
7 > it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:
8 >
9 >        ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
10 >        ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
11 >        ewarn "any executable. When you run startx, it will run this as the
12 > login session."
13 >        ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
14 >        ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
15 >        ewarn "Here's an example of setting it for the whole system:"
16 >        ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
17 >        ewarn "    env-update && source /etc/profile"
18 >
19 > So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
20 > (I use Gnome) did the trick.
21
22 Thanks Mike, most helpful! What happens if you want to switch between
23 different sessions at/from the Display Manager stage? Do you place
24 them all in /etc/env.d/90xsession ?
25 --
26 Regards,
27 Mick

Replies

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