Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SLiM doesn't load sessions correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
miscsubbin
n00b
n00b


Joined: 10 May 2012
Posts: 46

PostPosted: Tue May 15, 2012 9:41 pm    Post subject: [SOLVED] SLiM doesn't load sessions correctly Reply with quote

I've installed SLiM and followed this guide, but whenever I try to log in it just dumps me to a black desktop with a cross cursor. I have my settings set exactly as they are in that guide, so I really don't know what I could be doing wrong here.

startx normally works perfectly when I didn't have SLiM, so this should be a simple fix. Anyone know what could be going on here?


Last edited by miscsubbin on Sun May 20, 2012 2:43 am; edited 1 time in total
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2442
Location: Silver City, NM

PostPosted: Wed May 16, 2012 8:10 am    Post subject: Reply with quote

I have SLiM set up to use my ~/.xinitrc file. If you don't select a session type in the SLiM login screen (via F1 I think) then it will just run the .xinitrc file with no command line parameters. If you select a session type in SLiM then that session type will be sent as the first command line parameter to .xinitrc.

I haven't use SLiM for a while because I think it is broken but my /etc/slim.conf contains:
Code:
login_cmd         exec /bin/sh - ~/.xinitrc %session
sessions          fluxbox,icewm,lxde,e16

You could also try this login_cmd:
Code:
login_cmd         exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1


My .xinitrc looks like:
Code:
[ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc

case "$1" in
    fluxbox)
        exec startfluxbox
        ;;
    icewm)
        exec icewm-session
        ;;
    lxde)
        exec startlxde
        ;;
    e16)
        exec e16
        ;;

    # Default: fluxbox
    *)
        exec startfluxbox
        ;;
esac

HTH
Back to top
View user's profile Send private message
ds2369
n00b
n00b


Joined: 09 May 2012
Posts: 6

PostPosted: Fri May 18, 2012 9:07 pm    Post subject: Reply with quote

I'm having the same problem with dwm.
Which WM/DE are you trying to use?
Back to top
View user's profile Send private message
the8lack8ox
n00b
n00b


Joined: 03 Feb 2009
Posts: 29
Location: Cleveland, OH, USA

PostPosted: Sat May 19, 2012 6:27 am    Post subject: Reply with quote

Starting a simple window manager is unfortunately a giant headache nowadays. I use GNOME and start it from ~/.zprofile at login using startx. Anyhow, I'm guessing your login_cmd line along with the sessionsdir line looks like this:
Code:
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session
sessiondir          /etc/X11/Sessions

If you created a ~/.xsession as per the guide, I would just delete it and symlink ~/.xinitrc to ~/.xsession, which is what most people do. Since startx works for you, this should work no problem. And if SLiM isn't starting X using your ~/.xsession script, hit F1 at the login prompt to cycle through the options.
Back to top
View user's profile Send private message
theluckymike
n00b
n00b


Joined: 17 May 2012
Posts: 26

PostPosted: Sat May 19, 2012 12:29 pm    Post subject: Reply with quote

Maybe the same issue - http://forums.gentoo.org/viewtopic-p-7041828.html#7041828 . At least I had the same problem.
Back to top
View user's profile Send private message
miscsubbin
n00b
n00b


Joined: 10 May 2012
Posts: 46

PostPosted: Sun May 20, 2012 1:39 am    Post subject: Reply with quote

ds2369 wrote:
I'm having the same problem with dwm.
Which WM/DE are you trying to use?


I'm using awesome. I'm trying some of the configs now, so I'll update on how it goes. If that doesn't work, I'll try that symlinking.
Back to top
View user's profile Send private message
miscsubbin
n00b
n00b


Joined: 10 May 2012
Posts: 46

PostPosted: Sun May 20, 2012 2:03 am    Post subject: Reply with quote

theluckymike wrote:
Maybe the same issue - http://forums.gentoo.org/viewtopic-p-7041828.html#7041828 . At least I had the same problem.


I did this and it no longer dumps me at the blank screen, but now it sent me to the regular console login. So I still have to login anyway. I'm going to try symlinkning to see if that helps any.

EDIT: This solved it:

Code:
emerge consolekit
rc-update add consolekit default


Thanks everyone!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum