Bug 451850

Summary: Allow non-GNOME default session in gdm
Product: [Fedora] Fedora Reporter: Warren Togami <wtogami>
Component: gdmAssignee: jmccann
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: cschalle, mclasen, rdieter, rstrode, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-08 21:26: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:
Bug Depends On:    
Bug Blocks: 438943    

Description Warren Togami 2008-06-17 19:32:42 UTC
daemon/gdm-session-direct.c:

static char *
get_fallback_session_name (void)
{
        const char  **search_dirs;
        int           i;
        char         *name;

        name = g_strdup ("gnome");
        if (get_session_command_for_name (name, NULL)) {
                return name;
        }

The hard coded "gnome" here makes it impossible to specify any other session as
default globally for the system.  Ray Strode mentioned that it should grab this
from the /etc/gdm/custom.conf.

Could we have this in a F-9 update as well?

Comment 1 jmccann 2008-06-17 19:38:53 UTC
So, while I expect we'd take a patch to change this it won't help you if the
user has already selected a session.  The session stored in the .dmrc will
always override this default.

Comment 2 Warren Togami 2008-06-17 21:38:56 UTC
> So, while I expect we'd take a patch to change this it won't help you if the
> user has already selected a session.  The session stored in the .dmrc will
> always override this default.

This is fine.

Since we'll be changing this part, perhaps we could discuss alternative ideas.

I would prefer an optional system-wide dmrc that is read before user's dmrc (so
other DM's could read it from the common location).  But Ray and Jon said that
some "IPA" based thing should be providing this in the future.  They don't want
to add a global dmrc now because they plan on eliminating all .dmrc's.

What exactly is this future thing?  Are any details of it written down anywhere?
 How soon will we have it?

Comment 3 Simo Sorce 2008-07-12 14:53:44 UTC
Not sure why I am needinfo here, changing to assigned as I have no knowledge of
internal GDM stuff.

Comment 4 Matthias Clasen 2008-10-02 00:31:54 UTC
I believe this is more or less fixed by the splitting off of gnome-session-xsession.
It is now possible to use gdm without installing the file 
/usr/share/xsessions/gnome.desktop. In that case, the fallback code mentioned in this report won't return gnome, but instead find the first desktop file in /usr/share/xsessions.

Comment 5 Matthias Clasen 2008-10-08 21:26:55 UTC
Considering this fixed, since no further input was provided.