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 |