View previous topic :: View next topic |
Author |
Message |
miscsubbin n00b
Joined: 10 May 2012 Posts: 46
|
Posted: Tue May 15, 2012 9:41 pm Post subject: [SOLVED] SLiM doesn't load sessions correctly |
|
|
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 |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Wed May 16, 2012 8:10 am Post subject: |
|
|
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 |
|
|
ds2369 n00b
Joined: 09 May 2012 Posts: 6
|
Posted: Fri May 18, 2012 9:07 pm Post subject: |
|
|
I'm having the same problem with dwm.
Which WM/DE are you trying to use? |
|
Back to top |
|
|
the8lack8ox n00b
Joined: 03 Feb 2009 Posts: 29 Location: Cleveland, OH, USA
|
Posted: Sat May 19, 2012 6:27 am Post subject: |
|
|
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 |
|
|
theluckymike n00b
Joined: 17 May 2012 Posts: 26
|
|
Back to top |
|
|
miscsubbin n00b
Joined: 10 May 2012 Posts: 46
|
Posted: Sun May 20, 2012 1:39 am Post subject: |
|
|
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 |
|
|
miscsubbin n00b
Joined: 10 May 2012 Posts: 46
|
Posted: Sun May 20, 2012 2:03 am Post subject: |
|
|
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 |
|
|
|