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.
Comments
1 comment
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!
Leave a comment