After installing Xfce4 and SLiM login manager I have noticed that by just entering the user name and password would not sufficient to login to desktop because I get error message "SLiM failed to execute login command" all the time.
If I choose manually one of the available X11 sessions (by pressing Ctrl+F1) then if I enter my user and password I noticed that the login process runs without error.
What could be the cause? Well, in your /etc/slim.conf you might have the login_cmd defined as:
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
The only problem is that %session is not defined (by default). Remember when I've said that by selecting manually the X11 session I could login without error? What's happening is that by doing that I just define what would be the %session. If I choose Xfce4 then %session=Xfce4. If I choose "lxde" then %session=lxde. If I choose something else then %session="something else". You've got the idea.
You can get rid of this problem by adding the following line to your /etc/env.d/90xsession file as bellow:
XSESSION="Xfce4"
After that everything should works as is supposed to.
- You can read more about Simple Login Manager (SLiM) here: http://slim.berlios.de/manual.php
- Since this is a problem related to how to configure SLiM as a X11 session then you should also read this: http://wiki.gentoo.org/wiki/SLiM
- This article describes well Login and X Session Management: http://bio.gsi.de/DOCS/NCDWARE/V5.0.000/HTML/login3.htm
Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.
Eugen Mihailescu
Latest posts by Eugen Mihailescu (see all)
- Dual monitor setup in Xfce - January 9, 2019
- Gentoo AMD Ryzen stabilizator - April 29, 2018
- Symfony Compile Error Failed opening required Proxies - January 22, 2018
A lovely fix. Unfortunately, the login still failed for me, perhaps because I modified my slim_conf live and saved under persistence... anyway, even choosing Xfce with ctrl-f1 fails (if that wasn't clear). In my case I think it would be faster for me to rebuild it. Thanks!