Bug 16464 - Slight lack of robustness in /etc/X11/prefdm script
Summary: Slight lack of robustness in /etc/X11/prefdm script
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 6.2
Hardware: All Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2000-08-17 18:12 UTC by J. J. Ramsey
Modified: 2014-03-17 02:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-17 18:12:04 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description J. J. Ramsey 2000-08-17 18:12:02 UTC
The prefdm script depends on the entry in /etc/sysconfig/desktop actually
the desktop being run on the system. That is, it presumes that if
contains the line DESKTOP="KDE", then KDE--and kdm--is actually installed.
Not always
true. For example, I installed Red Hat 6.2 as a KDE workstation, but later
decided to 1) use startx instead of having a graphical login, and 2)
decided to get rid of KDE in favor of Blackbox, and yet a 
few months more months down the line, I decided to use Helix GNOME. Up to
this point, 
/etc/sysconfig/desktop still was unchanged, containing the line
DESKTOP="KDE", and when I decided 
to use a graphical login again by changing the runlevel back to 5, prefdm
choked, and I didn't get a 
graphical login screen at all--not a good failsafe. Changing the last few
lines of the prefdm script from

	if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then 
		exec `which $preferred` $*


	if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then 
		exec `which $preferred` $*
		exec `which xdm` $*

at least gets me *a* graphical login instead of an error message at a
nongraphical login prompt, even
if /etc/sysconfig/desktop is messed up. 

(As a sidenote, changing /etc/sysconfig/desktop so that it read
DESKTOP="GNOME" got me the 
graphical login I wanted, namely gdm, but that's not the point of this

Comment 1 Bill Nottingham 2000-08-22 14:46:53 UTC
Will be fixed in initscripts-5.48-1.

Note You need to log in before you can comment on or make changes to this bug.