Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2003, 07:18 PM   #1
Registered: May 2003
Posts: 32

Rep: Reputation: 15
Question How to change what desktop manager is used to logon. (mandrake)

I am running mandrake 9.1 on my box, and i saw someone who changed there graphical logon screen from the default mandrake one (kde) to the one that redhat uses (the gnome one). i cant figure how to change which one my computer uses. can anyone help?

Last edited by mindstormsguy; 10-15-2003 at 07:32 PM.
Old 10-15-2003, 08:25 PM   #2
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30

'As you can see in the Session Type field, the default environment is the last one you used. You can change it by simply choosing another one from the pull-down menu.'

Mandrake's documentation is second to none.

Old 10-15-2003, 08:32 PM   #3
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
I believe that you'll have to edit one of your config files, no doubt you should be root to do this. The config file in question is /etc/X11/prefdm

It should look like this (with some more stuff at the bottom I left off) -


export HOME

# We need to source this so that the login screens get translated
[ -f /etc/profile.d/ ] && . /etc/profile.d/

# trap SIGTERM to be able to kill autologin
killed () {
    kill -15 $!

trap killed 15

# Run preferred X display manager

# Try autologin first, if wanted...
if [ -f /etc/sysconfig/autologin -a -x /usr/sbin/autologin ]; then
        . /etc/sysconfig/autologin
        if [ -n "$USER" -a "$AUTOLOGIN" = yes ]; then
            /usr/sbin/autologin &
            echo -n $$ > /var/lock/subsys/dm
            wait $!

# we have to assume that /etc/sysconfig/desktop has two variables, DESKTOP
# and DISPLAYMANAGER because administors may prefer a specific DM regardless
# of desktops.
# DISPLAYMANAGER is referenced by this script, and DESKTOP is referenced
# as system-wide default by /etc/X11/Xsession script only when X-session
# is opened by "startx" command. 
# when DMs open an X-session, they send DESKTOP, which is in this case
# directly selected by users, as a commandline argument of /etc/X11/Xsession.
# actually Xsession script is only able to know by existance of its first
# argument whether it is called by DM or "startx". see the logic
# in /etc/X11/Xsession.
# If DISPLAYMANAGER is not defined, then assume that it is the same as DESKTOP
Open this file in your favorite text editor and after the "preferred=" part add the text "gdm", so it looks like "preferred=gdm". That should change your login manager. If that doesn't do it than edit the file again, this time add "gdm" underneath the "
# Run preferred X display manager" line in the config file. Either one of those changes should do what you want.
Old 10-16-2003, 07:25 AM   #4
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
use xwmconfig to change your standart window manager
Old 10-16-2003, 11:43 PM   #5
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
On a Mandrake 9.1 box there does not seem to be a xwmconfig.

[default@localhost default]$ man xwmconfig
No manual entry for xwmconfig

[default@localhost default]$ whereis xwmconfig

[default@localhost default]$ urpmf --provides xwmconfig
xwmconfig seems to be mainly a Slackware-specific program.

Also I *think* that the original poster wants to merely change the login manager from kdm to gdm, anyone with half a brain can figure out that you can choose from any of the WMs you have installed when you login via gdm or kdm on Mandrake. Mandrake also provides a very easy graphical tool to change the default WM, so I don't imagine that's the problem. However there is no such tool to change your login manager other than the prefdm script. Which is as simple to edit as I outlined above.
Old 10-18-2003, 09:45 PM   #6
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
thanks Read_Icculus your method worked perfectly


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do you change the X session logon to text and vice versa? Thaidog Linux - General 2 10-19-2005 08:28 AM
Change userID now can't logon to system saraeliz Linux - Newbie 5 10-11-2005 08:07 PM
change logon icon fypon Mandriva 1 03-10-2004 01:13 AM
Gnome Desktop Manager logon problem l_pinter Linux - Newbie 5 01-12-2004 04:39 PM
change from graphical to text logon mode in RH8 hheejj Linux - General 4 01-09-2003 03:49 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration