Gentoo Archives: gentoo-user

From: daid kahl <daidxor@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
Date: Tue, 15 Dec 2009 06:05:50
Message-Id: 3ac129340912142129o44871d11m4f167f3254900392@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/14 Mike Mazur <mmazur@×××××.com>:
2 > Hi,
3 >
4 > On Mon, Dec 14, 2009 at 19:17, Mick <michaelkintzios@×××××.com> wrote:
5 >> 2009/12/13 Mike Mazur <mmazur@×××××.com>:
6 >>
7 >>> I ran across this issue last night.
8 >>>
9 >>> At some point /etc/rc.conf was no longer being sourced. Instead,
10 >>> setting the XSESSION variable in /etc/env.d is the correct way to do
11 >>> it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:
12 >>>
13 >>>        ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
14 >>>        ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
15 >>>        ewarn "any executable. When you run startx, it will run this as the
16 >>> login session."
17 >>>        ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
18 >>>        ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
19 >>>        ewarn "Here's an example of setting it for the whole system:"
20 >>>        ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
21 >>>        ewarn "    env-update && source /etc/profile"
22 >>>
23 >>> So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
24 >>> (I use Gnome) did the trick.
25 >>
26 >> Thanks Mike, most helpful!  What happens if you want to switch between
27 >> different sessions at/from the Display Manager stage?  Do you place
28 >> them all in /etc/env.d/90xsession ?
29 >
30 > Sorry, I'm not sure how to do that. I'm the only user on my system and
31 > I don't use a graphical login manager.
32 >
33 > Mike
34
35 This post might go without saying...
36
37 You can just set this up in ~/.xinitrc then.
38
39 exec startxfce4
40
41 or whatever...
42
43 Regards,
44 daid

Replies

Subject Author
Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? Marcus Wanner <marcusw@×××.net>