Gentoo Archives: gentoo-amd64

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] No kdm after 2005.0 upgrade
Date: Sat, 28 Jan 2006 14:05:08
Message-Id: 7573e9640601280602g37c199fao53c82024a6cdd3b3@mail.gmail.com
In Reply to: [gentoo-amd64] No kdm after 2005.0 upgrade by Daiajo Tibdixious
1 On 1/28/06, Daiajo Tibdixious <daiajo@×××××.com> wrote:
2 > According to
3 > http://www.gentoo.org/doc/en/kde-config.xml
4 > I only have to put DISPLAY_MANAGER="kdm" in /etc/rc.conf, which I have
5 > done:
6
7
8 > $ grep DISPLAY /etc/rc.conf
9 > DISPLAY_MANAGER="kdm"
10
11 That should be DISPLAYMANAGER=xdm
12
13 > I'm going to go thru the xdm startup to try to figure this out, which will
14 > take a while,
15
16 Shouldn't take long, the (partial) code that does it (from /etc/init.d/xdm) is:
17
18 local MY_XDM="$(echo ${DISPLAYMANAGER} | awk '{ print tolower($1) }')"
19 case "${MY_XDM}" in
20 kdm|kde|kde2|kde3)
21 EXE="$(which kdm)"
22 ;;
23 <snip>
24 *)
25 EXE=
26 # Fix #65586, where MY_XDM is empty so EXE=somedir
27 [ -x "/usr/bin/${MY_XDM}" -a -f "/usr/bin/${MY_XDM}" ] \
28 && EXE="/usr/bin/${MY_XDM}"
29 [ -z "${EXE}" ] && EXE="/usr/bin/xdm"
30 ;;
31 esac
32
33 test ! -x "${EXE}" && EXE=/usr/bin/xdm
34
35 You can see it looks for DISPLAYMANAGER, uses the program 'which' to
36 determine if the requested display manager exists, and if it does not,
37 falls back to xdm (last line).
38
39 -Richard
40
41 --
42 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] No kdm after 2005.0 upgrade Richard Fish <bigfish@××××××××××.org>