You are not logged in.
I also have two sessions.
My .xinitrc has already had a simple "exec startxfce4", there was no ck-launch-session in it before, so I cannot apply your fix unfortunately.
My slim.conf "login_cmd": exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Perhaps remove "ck-launch-session" while leaving everything else in your slim.conf login_cmd?
Last edited by headkase (2012-05-08 19:06:04)
Offline
Thank you, that worked.
Silly me...
Does your login_cmd look the same?
Offline
You're welcome. Nope this is my login_cmd line in slim.conf:
login_cmd exec /bin/bash -login ~/.xinitrc %session
Offline
Thanks a lot! Worked for me to :-).
Last edited by Thomas_Do (2012-05-08 19:36:31)
Offline
Great!
Thanks again!
Offline
You're welcome again! We had better stop thanking and welcoming now - or this thread will grow into hundreds of pages!!
Offline
The new version of slim seems to work much better with the default .xinitrc.
What I have and works:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
I didn't need to make further changes to slim.conf or any other file.
Offline
dbus is the only addition I have to my exec line:
exec dbus-launch --exit-with-session startxfce4
And I have it because I explicitly want dbus to exit with the session. I don't know if it is "cleaner" or not but it appears to work perfectly fine for myself. From the Xfce Wiki:
There is still no need to start dbus-launch explicitly since startxfce4 takes care of doing that anyway.
So, explicitly starting dbus, as I do, like you say is probably superfluous.
However: dbus still needs to be in your DAEMONS array in /etc/rc.conf or "bad things will happen"™
Edit: removed "dbus-launch --exit-with-session" from my launch line, it is now just "exec startxfce4" like yours. Nothing changed, it all still works, so, simpler is better.
Last edited by headkase (2012-05-09 02:19:50)
Offline
Just to chime in here, removing ck-launch-session from ~/.xinitrc solved the problem for me too. Using SLiM with KDE.
Offline
xfce4 with slim. Solved here changing .xinitrc to
exec dbus-launch --exit-with-session startxfce4
thanks.
Last edited by tangato (2012-05-10 04:33:37)
Offline
@headkase thanks man, this was bugging me. I hope pacman would have warned me after updating slim.
Offline
Worked right after I edited the .xinitrc as instructed. Thanks a heap mate!
Offline
Well done.
Thanks a lot!!!
Offline
I had the same problem, found two steps necessary:
1. fix ~/.xinitrc as mentioned above, e.g.:
exec startxfce4
2.
# rm /etc/slim.conf
# mv /etc/slim.conf.pacnew /etc/slim.conf
Hope this helps anyone struggling with .xinitrc, dbus-launch, sudoers etc.
Offline