Bug 70476

Summary: prefdm case sensitivity with /etc/sysconfig/desktop
Product: [Retired] Red Hat Linux Reporter: Rick Johnson <htmlspinnr>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: medium    
Version: 7.3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-01 17:07:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rick Johnson 2002-08-01 17:06:37 UTC
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


How reproducible:
Always

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
manager

Expected Results:  kdm should run as display manager as well as KDE as the
default window manager. 

Additional info:

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.

Comment 1 Rick Johnson 2002-08-01 17:07:49 UTC
Clarification, /etc/X11/xinit/Xclients parses properly.

Comment 2 Bill Nottingham 2002-08-14 01:44:37 UTC
This is changed in the current development initscripts (6.89-1); this becomes
not relevant there.