Fedora comes with GNOME as the default desktop environment, and GDM as the default login manager. The login manager is the screen you see when logging in. Like GNOME has its login manager, KDE has its own login manager KDM. While logging in you can select which desktop environment you want to use from the sessions menu of the login manager. But there seems to be no ways to switch between these login managers. But you could do this manually by adding a couple of lines to a file. Check this out.
What to do
What you need to do to switch to GDM to KDM is to open the file /etc/sysconfig/desktop, or create it if not present, and add the below two lines.
DESKTOP="KDE" DISPLAYMANAGER="KDE"
And next time you login KDM would be at work. Provided you have KDE installed in your system.
To return to GDM change the DISPLAYMANAGER enrty to DISPLAYMANAGER="GNOME".
You can do this thing also by installing the commandline application system-switch-displaymanager and by executing
yum install system-switch-displaymanager system-switch-displaymanager kdm
What’s going on inside
Now this file and these two lines might look fishy. I am describing what it actually does.
The first line DESKTOP="KDE" sets up the default desktop environment.That is, when a user selects default option from the session menu of the login manager, it would launch this desktop environment. When you select a certain desktop environment, it remembers it by writing it into the file ~/.dmrc. So When logging in later it reads the ~/.dmrc file and checks for the last user’s desktop environment configuration and the DESKTOP entry in /etc/sysconfig/desktop is ignored. If the entry in ~/.dmrc is default then the default desktop is loaded.
Next the DISPLAYMANAGER="KDE" , this selects the login manager. After the booting has completed, the script /etc/X11/prefdm file reads the /etc/sysconfig/desktop file and reads the DISPLAYMANAGER entry, sets the corresponding display manager program and executes it. So when you set it to KDE, it decodes it and kets the program to execute /usr/bin/kdm. And if the /etc/sysconfig/desktop file is not present or some display manager is provided which does not exist in the system, it simply tries GDM, KDM and other display managers, by trial and error. Because it first tries GDM, fedora come with GDM default. Check out the script /etc/X11/prefdm, and you can also change the trial and error order to first try KDM.
Also check http://fedoraproject.org/wiki/KDE.
Thanks! Had to use this trick of switching from GDM to KDM, because GDM wouldn’t let me log into GNOME while KDM now does.
Thanks this is the 1st site I found that explained it in NON-Geek terms
This is not working in centos 7……….. what should I do? i have saved these two lines in /etc/sysconfig/desktop.
but, everytime, GNOME’s login manager comes….. I want KDE’s…
What should i Do?
Pls help
Do you have KDE installed? Make sure that the KDE packages are installed or not. KDE is not by default installed, you need to manually select for the KDE package group for installation.
My desktop environment is KDE only. I am using KDE only. but, everytime during login, i am selecting KDE and going inside. But, this was not the case with CentOS 6.5.
When I added the above two lines, it goes in to KDE by default. But, now in CentOS 7, I am to select KDE everytime I login……
Is there any package I need to install to automatically select KDE as default Desktop Environment during login?
Awaiting your suggestion pls………
Awaiting your suggestion pls………
I think the admin of this web site is in fact working hard in favor of his website, because here every stuff is quality based stuff.
Hurrah, that’s what I was looking for, what a material! present here at this webpage, thanks admin of this web site.
Denke ich.
Are there only 2 options?
That’s what I know of. Basically they both do the same thing.