Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

GDM/KDM Weirdness

stoolpigeon (454276) writes | more than 2 years ago

Red Hat Software 2

Something has been bugging me for a bit. I have 2 Fedora 16 machines - 1 is a 64 bit desktop and the other a 32 bit laptop. I have done too much different between the 2 but I like the login box on the one better than the other. I wasn't sure how they came to be different - but they are. So I tried to get them to match. This led to the realization that the changes I made in the System Setting -> Login Screen menu had no effect. I googled around but couldn't find anything that helped. A lot

Something has been bugging me for a bit. I have 2 Fedora 16 machines - 1 is a 64 bit desktop and the other a 32 bit laptop. I have done too much different between the 2 but I like the login box on the one better than the other. I wasn't sure how they came to be different - but they are. So I tried to get them to match. This led to the realization that the changes I made in the System Setting -> Login Screen menu had no effect. I googled around but couldn't find anything that helped. A lot of what I found was outdated.
 
It seemed to me that the most obvious reason that the changes didn't show up was that I was using GDM and the interface in System Settings is to change KDM. So I set out to get that switched. ( That it would be using GDM is no surprise as I just do a regular Fedora install, include KDE and switch to that as the default. ) That took a while because the KDE documentation doesn't work. I installed the program system-switch-displaymanager-gnome and I ran it. I chose KDM. Doing so created a file /etc/sysconfig/desktop that contained one line - DISPLAYMANAGER=KDE. This did not change the behavior. I just kept on digging - finally I ran across a fedorforum.org thread that mentioned changing the fallback order in /etc/X11/prefdm I took a look at that file on my system. To me it looked like what was in /etc/sysconfig/desktop should do what I wanted, but just for fun I switched the fallback order to have KDM first. When I did - my system started using KDM and now the changes in System Settings take effect.
 
I'm guessing if I installed from the KDE spin of Fedora, this might not be a problem. But I'm still at a loss as to why my desktop file had no effect. The first part of prefdm looks like this:

# Run preferred X display manager
preferred=
splash_quit_command=""
if [ -f /etc/sysconfig/desktop ]; then
                . /etc/sysconfig/desktop
                if [ "$DISPLAYMANAGER" = GNOME ]; then
                                preferred=/usr/sbin/gdm
                elif [ "$DISPLAYMANAGER" = KDE ]; then
                                preferred=/usr/bin/kdm
                elif [ "$DISPLAYMANAGER" = WDM ]; then
                                preferred=/usr/bin/wdm
                                splash_quit_command="plymouth quit"
                elif [ "$DISPLAYMANAGER" = XDM ]; then
                                preferred=/usr/bin/xdm
                                splash_quit_command="plymouth quit"
                elif [ -n "$DISPLAYMANAGER" ]; then
                                preferred=$DISPLAYMANAGER
                                splash_quit_command="plymouth quit"
                fi
fi

It seems to me that ought to work - but for whatever reason it does not. Now I have it working the way I'd like by setting KDM as the first fallback and that makes me happy. I think I'll file a bug report - though I hope it is a bug and not something I am missing.

cancel ×

2 comments

Sorry! There are no comments related to the filter you selected.

Moo (1)

Chacham (981) | more than 2 years ago | (#39170877)

Make sure you look at both system and user settings. Sometimes the other one is being used.

Re:Moo (1)

stoolpigeon (454276) | more than 2 years ago | (#39171785)

Good point - and I did consider it - though I just don't know enough about how it all works to follow that path. Basically I would just search on stuff like "KDM changes not saving" or "switching from gdm to kdm" and so on, with various extra info. thrown in.

So I was looking all over the place for anything that would put me on the right track. My one guess in this regard though - was that in a way this seems like it would have to be a system wide choice as it comes into effect before any user is logged in - unless it chooses based on some previous session.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>