Gentoo Archives: gentoo-dev

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-dev] Re: /etc/rc.conf Forrest Voight <voights@×××××.com>