Red Hat Bugzilla – Bug 70476
prefdm case sensitivity with /etc/sysconfig/desktop
Last modified: 2014-03-16 22:29:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
Description of problem:
If installing with a Kickstart script and KDE is specified as your desktop in
lower case (as "kde"), /etc/sysconfig/desktop has the entry of "DESKTOP=kde".
While xinit properly parses this with grep -i, prefdm does not.
The results end up being that when using runlevel 5, gdm ends up being the
preferred login manager (instead of xdm or kdm), but KDE (or twm or fvwm) is
still launched as the "default".
Version-Release number of selected component (if applicable): initscripts-6.67-1
Steps to Reproduce:
1. Enter "kde" in lower case as your desktop in /etc/sysconfig/desktop
2. Switch to runlevel 5
3. Note gdm as the display manager, but KDE is the default environment.
4. Switch to "KDE" in /etc/sysconfig/desktop, and then note that kdm is the
display manager and KDE is the default environment.
Actual Results: gdm runs as the display manager, but kde remains default window
Expected Results: kdm should run as display manager as well as KDE as the
default window manager.
Perhaps switching the case when parsing the kickstart script could help, as well
as providing a case insensitive means of reading the DESKTOP string from
/etc/sysconfig/desktop file could solve this problem.
Clarification, /etc/X11/xinit/Xclients parses properly.
This is changed in the current development initscripts (6.89-1); this becomes
not relevant there.