Red Hat Bugzilla – Bug 234218
gdm defaults to gnome.desktop even if gnome isn't installed.
Last modified: 2007-11-30 17:12:00 EST
Description of problem:
During fresh installation of Fedora 7 test2, Gnome unselected and KDE selected
still installs Gnome and makes it the default gdm instead of KDE.
Version-Release number of selected component (if applicable):
Occurred on both FC6 and F7test2.
Steps to Reproduce:
1. Deselect Gnome and select KDE during installation customization
Gnome and KDE installed, Gnome default gdm.
Only KDE installed and default gdm.
P4 1.8Ghz, 256mb RAM, 40gb WesterDigital hard drive, Nvidia 5600XT
Can you provide the /root/anaconda-ks.cfg? And does this still happen with test3?
Created attachment 151266 [details]
anaconda-ks.cfg generated by F7 test3 installer
We'll default to gdm in all cases. But gdm should be doing the right thing
without the gnome bits installed.
What do you mean by "right thing" ?
We shouldn't be trying to start a gnome session if gnome isn't installed.
This is probably fallout from the "Xclients entry"-ectomy that Matthias did a
Adding to FC7Target.
Bulk message: Fedora 7 test bugs should be filed against "devel", not against
test1/2/3. This isn't obvious, I know. Moving this report so it isn't lost.
Looks like we need to reinstate default.desktop. That'll make /etc/gdm/Xsession
fall thru to running /etc/X11/xinit/Xclients, which will detect if gnome or kde
are installed and run whichever it finds.
yea, but we should probably call it legacy.desktop or xclients.desktop and make
sure that GDM will pick *something* as a default if the configured default
If you look at how /etc/X11/xinit/Xclients handles this, it will run gnome or kde,
as long as one of them is installed, falling back to the other if the preferred
desktop is not installed.
I don't mind keeping the name default.desktop. It is after all, the default
that we ship in /usr/share/gdm/defaults.conf
Of course, all the layers and fallbacks in /etc/gdm/Xsession
and/etc/X11/xinit/Xclients are a bit grotty...
So, what I want to do is ship defaults.desktop (or whatever we call it in
xorg-x11-xinit , we already ship gnome.desktop in gnome-session I believe, so
then there is the matter of the default... It should probably be gnome.desktop
and if gnome.desktop doesn't exist it should just pick something.
Be it Xclients or kde.desktop or whatever
No. Look at the handling in Xclients. We can just make default.desktop the
default, then things work (and gnome will be preferred if it is installed).
The whole point of default.desktop is that you can make it the default, and
Xclients does the heavy lifting to figure out what is installed and what is
preferred, and what should be run. The final fallback being xsm, without a check
that it exists. Ugh.
I don't want to route through Xclients going forward though. I'm pretty sure
we've talked about this before.
For Fedora 7 we should probably just make things work again, granted.
the related upstream bug is here:
Oh, now I see that I removed the default.desktop file because of the stupid name.
Just calling it "Default" again would be a bit better, I guess.
I think the point of routing through Xclients is that you can share the "pick a
desktop" logic between gdm and startx, but it may not be worth it.
We really need to remove all remnants of xsm support though.
Yea, I'll just add it back as a builtin session called Default for Fedora 7. We
can fix it better for fedora 8
okay 2.16 default.desktop is in place now. We can do a better fix for Fedora 8.