Gentoo Archives: gentoo-dev

From: Forrest Voight <voights@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: /etc/rc.conf
Date: Mon, 13 Feb 2006 00:09:14
Message-Id: b572c9e10602121603xd2b103pf8542321c1ebef4d@mail.gmail.com
In Reply to: Re: [gentoo-dev] /etc/rc.conf by Donnie Berkholz
1 I was using an old gentoo system. Forget about KEYMAP.
2 But, what about UNICODE? That is related to KEYMAP and consolefont.
3 Shouldn't EDITOR and XSESSION be in a user-specific place?
4
5 Forrest
6
7 On 2/12/06, Donnie Berkholz <spyderous@g.o> wrote:
8 > Chris Gianelloni wrote:
9 > > On Sun, 2006-02-12 at 11:38 -0800, Donnie Berkholz wrote:
10 > >> Forrest Voight wrote:
11 > >>> Hello all,
12 > >>>
13 > >>> I believe that rc.conf contains many values that could be put into
14 > >>> conf.d. For example, DISPLAYMANAGER and KEYMAP. DISPLAYMANAGER could
15 > >>> be put into conf.d/xdm. Then, this variable would not exist with a
16 > >>> non-X environment, and configuration could be more modularized.
17 > >> DISPLAYMANAGER should stay in rc.conf is because XSESSION is in rc.conf,
18 > >> and it doesn't make sense to split them up. XSESSION is unrelated to any
19 > >> service, so there's not really a better place for it.
20 > >
21 > > Isn't XSESSION *only* used by display managers? I know for a fact that
22 > > it isn't used by "startx" or anything.
23 >
24 > Do you now? It's used by my startx.
25 >
26 > Take a look at /etc/X11/xinit/xinitrc:
27 >
28 > # First try ~/.xinitrc
29 > if [ -f "$HOME/.xinitrc" ]; then
30 > XINITRC="$HOME/.xinitrc"
31 > exec /bin/sh "$HOME/.xinitrc"
32 > # If not present, try the system default
33 > elif [ -n "`/etc/X11/chooser.sh`" ]; then
34 > exec "`/etc/X11/chooser.sh`"
35 >
36 > in chooser.sh:
37 >
38 > # If $XSESSION is "", source first /etc/conf.d/basic, and then /etc/rc.conf
39 > if [ -z "${XSESSION}" ]
40 > then
41 > [ -f /etc/conf.d/basic ] && source /etc/conf.d/basic
42 > [ -f /etc/rc.conf ] && source /etc/rc.conf
43 > fi
44 >
45 > # Find a match for $XSESSION in /etc/X11/Sessions
46 > GENTOO_SESSION=""
47 > for x in /etc/X11/Sessions/*
48 > do
49 > if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" \
50 > = "`echo ${XSESSION} | awk '{ print toupper($1) }'`" ]
51 > then
52 > GENTOO_SESSION=${x}
53 > break
54 > fi
55 > done
56 >
57 >
58 >
59
60 --
61 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: /etc/rc.conf Donnie Berkholz <spyderous@g.o>