Bug 485751

Summary: /etc/X11/prefdm should support falling back to SLiM
Product: [Fedora] Fedora Reporter: Christoph Wickert <christoph.wickert>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: fred_leah, kevin, lex.lists, notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.86.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-24 20:44:51 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:
Bug Depends On:    
Bug Blocks: 478821    
Attachments:
Description Flags
Proposed Patch to configure slim via DISPLAYMANAGER on /etc/X11/prefdm none

Description Christoph Wickert 2009-02-16 17:46:13 UTC
Description of problem:
I've had some users complaining that they don't get X after doing an install with base-x and lxde-desktop. This is because the lxde-desktop group only includes SLiM but but xdm, gdm or kdm.

Version-Release number of selected component (if applicable):
initscripts-8.86-1.i386

How reproducible:
always

Steps to Reproduce:
1. install Fedora 10 with base-x and lxde-desktop groups
2. reboot
  
Actual results:
No X, no firstboot

Expected results:
X should start up with firstboot

Additional info:

--- /etc/X11/prefdm.orig	2008-11-11 17:59:18.000000000 +0100
+++ /etc/X11/prefdm	2009-02-16 18:36:19.000000000 +0100
@@ -36,6 +36,7 @@
 # Fallbacks, in order
 exec gdm "$@" >/dev/null 2>&1 </dev/null
 exec kdm "$@" >/dev/null 2>&1 </dev/null
+exec slim-dynwm "$@" >/dev/null 2>&1 </dev/null
 exec wdm "$@" >/dev/null 2>&1 </dev/null
 exec xdm "$@" >/dev/null 2>&1 </dev/null
 # catch all exit error

Comment 1 Bill Nottingham 2009-02-16 19:13:06 UTC
Meh. This cries out for something that can be modifed more sanely. Let me see if there's a better way out of this.

Comment 2 Christoph Wickert 2009-02-16 19:49:33 UTC
(In reply to comment #1)
> Meh. This cries out for something that can be modifed more sanely.

Why that? If this is not sane, the others aren't sane ether. I guess the best would be the Xclients.d solution from bug #142260, but I have no idea how this is supposed to work.

Comment 3 Bill Nottingham 2009-02-16 20:00:59 UTC
Well, the simple answer for LXDE is to write a /etc/sysconfig/desktop with DISPLAYMANAGER set somewhere. But I don't want to keep having to modify this file for every desktop that may possibly exist.

Comment 4 Christoph Wickert 2009-02-16 20:19:57 UTC
I know about /etc/sysconfig/desktop, I'm happily using it in
http://cwickert.fedorapeople.org/lxde/fedora-livecd-lxde.ks

But how am I supposed to write/modify this file on a normal install (when not installing from the LXDE livecd)?

Comment 5 lexual 2009-03-04 00:51:53 UTC
Doesn't gdm needed to be added to lxde-desktop group in comps.xml.
xfce-desktop & gnome-desktop both have it.
kde-desktop will install kdm.

Comment 6 Christoph Wickert 2009-03-04 08:40:38 UTC
No, I'm not going add gdm to the lxde-group, because it will pull in gnome-session, gnome-control-center and many more. That's why I added slim and want prefdm to support it.

Comment 7 lexual 2009-03-04 11:25:18 UTC
Why does gdm depend on gnome-session?

Comment 8 Christoph Wickert 2009-03-04 13:30:05 UTC
Because the new GDM that was introduced in Fedora 8 runs in a Gnome session.

Comment 9 Jochen Schmitt 2009-03-05 16:37:34 UTC
Created attachment 334152 [details]
Proposed Patch to configure slim via DISPLAYMANAGER on /etc/X11/prefdm

I wnat to propose, that it should be possible to use slim via setting DSPLAYMANAGER=SLIM in the /etc/X11/prefdm file.

Comment 10 Christoph Wickert 2009-03-05 17:34:40 UTC
You can already make SLiM defdault in /etc/sysconfig/desktop, but does it really mela a difference if the file reads
DISPLAYMANAGER=SLIM or
DISPLAYMANAGER=/usr/bin/slim-dynwm

This still is no fallback and the file still needs to be configured manually. I'm looking for something that is working out of the box after a "yum groupinstall LXDE".

Comment 11 Bill Nottingham 2009-03-24 20:44:51 UTC
Well, that can't work now because you don't get SLIM with 'yum groupinstall lxde', at least not without extra flags or package selection.

Aside from that, fixed in http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=7fed044885fb2eeb92fe59cec649318caff7e382.

Comment 12 Fedora Update System 2009-04-02 18:04:20 UTC
initscripts-8.86.1-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.1-1

Comment 13 Fedora Update System 2009-04-03 04:16:01 UTC
initscripts-8.86.2-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.2-1

Comment 14 Fedora Update System 2009-04-22 20:22:31 UTC
initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.