Change default Desktop Environment in display manager

Issues related to applications and software problems

Change default Desktop Environment in display manager

Postby moonfern » 2012/01/31 15:44:26

Hello

I want to change the default Desktop Environment in the the display manager from gnome to kde on centos 6.
To be more precise: I want to know where (which script) the default display manager is set

What I've learned:
switchdesk is not supported in centos 6. ( But as said above that's not a really a solution for me)
In centos 5 I would have to do this, edit /etc/sysconfig/desktop and put DESKTOP="KDE" and DISPLAYMANAGER="KDE" in it.

There is no desktop file in centos 6 and it seems to me that parts of the booting process changed and I'm looking at the wrong places.

Thank you.

Tom De Maesschalck
moonfern
 
Posts: 2
Joined: 2012/01/31 14:29:19

Change default Desktop Environment in display manager

Postby pschaff » 2012/01/31 18:52:04

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

See /etc/X11/xinit/Xclients - seems it still checks for the presence of /etc/sysconfig/desktop and acts accordingly.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Change default Desktop Environment in display manager

Postby moonfern » 2012/01/31 23:40:51

Thank you very much for helping me.

I didn't make a normal user account (so only root) and that's why no /etc/sysconfig/desktop file was made.
So I made one myself.

I have to add that there's also /etc/X11/prefdm which is just a simple script pointing to that desktop file you and I mentioned above.
I think it's executed before /etc/X11/xinit/Xclients but since both point to the same file it doesn't matter.

:-)
moonfern
 
Posts: 2
Joined: 2012/01/31 14:29:19

Re: Change default Desktop Environment in display manager

Postby pschaff » 2012/02/02 00:19:21

Use of a GUI as root is to be avoided. It is much too dangerous. One should always log in as a normal user and become root as required. GUI applications that require root will almost universally prompt for the password.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Change default Desktop Environment in display manager

Postby slamtonio » 2012/08/15 23:07:14

Hello moonfern,

Were you able to change the default desktop by editing the /etc/X11/prefdm or /etc/X11/xinit/Xclients files?

I installed xorg-x11-xinit-session and get an option to switch the desktop from the bottom panel, but unlike you I'm trying to do this with FVWM and that selection is listed as "user scrpt". And when I select "user script" I do go into FVWM. However I would like to default FVWM b/c I also want to auto login as a non-root user.

Thanks for any input or information you or anyone else can provide to help in this endeavor.

Regards,

Antonio
slamtonio
 
Posts: 24
Joined: 2007/07/23 18:11:20


Return to CentOS 6 - Software Support

Who is online

Users browsing this forum: No registered users and 11 guests