Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] slim: login w/o default WM crashes X = consolekit
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
CleanTestr
n00b
n00b


Joined: 15 Jan 2013
Posts: 47
Location: somewhere in Rural Nebraska, USA

PostPosted: Sat Aug 10, 2013 7:16 pm    Post subject: [SOLVED] slim: login w/o default WM crashes X = consolekit Reply with quote

This is using multi-lib ~amd64 xorg-server-1.14.2.90 for various 'reasons'..

Manual login with startx can be made to work.

The manual says that slim will pass %session as empty-string if no session
selected -- that is: .xinitrc will obtain $1=<empty> in that case

So in .xinitrc, I
Code:
# DEFAULT_SESSION=e16
DEFAULT_SESSION=starte16

case $1 in
e16)
        exec starte16
        ;;
xfce4)
        exec startxfce4
        ;;
icewm)
        icewmbg &
        icewmtray &
        exec icewm
        ;;
wmaker)
        exec wmaker
        ;;
blackbox)
        exec blackbox
        ;;
*)
        exec $DEFAULT_SESSION
        ;;
esac


which should get me Session e16. What in fact happens is

a) if I Alt-F1 e16 from the list, X crashes EE trap 11 segfault at 0,
(according to logs) before .xinitrc runs

b) if I don't specify session, X loads, presenting a movable X cursor on a black background
with no click actions

c) if run from startx, it works as expected

/etc/slim.conf:
Code:
login_cmd           exec /bin/bash -login ~/.xinitrc %session
..
sessions            e16,xfce4, ..

_________________
Stan: A signal? Why didn't you wake me?
790: It was a distress signal. They only lead to trouble, so I always ignore them. --Lexx


Last edited by CleanTestr on Sun Aug 11, 2013 8:52 pm; edited 6 times in total
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4675

PostPosted: Sun Aug 11, 2013 5:41 am    Post subject: Reply with quote

If you select no session, $1 is empty, so $DEFAULT_SESSION, i.e. "e16" is substituted. If you select e16 then "starte16" is executed. This explains the difference. I do not know what is the supposed way to start e16; perhaps it requires additional actions or certain environmen variables to be set or some parameters passed? Do the other window managers work?
Back to top
View user's profile Send private message
CleanTestr
n00b
n00b


Joined: 15 Jan 2013
Posts: 47
Location: somewhere in Rural Nebraska, USA

PostPosted: Sun Aug 11, 2013 3:59 pm    Post subject: Reply with quote

/usr/bin/starte16 -> /usr/share/e16/misc/starte16,

which contains a switch-case of $1=gnome, kde, window or <empty>.
when <emtpy>, /usr/bin/e16 gets invoked (which is the *default* case, above).

so, according to the files supplied with e16, just running /usr/bin/e16 should
invoke the wm (this is for a minimal stage4 -- I don't have the other wm's installed).

additional information:

when X presents the black screen with the movable X cursor, slim reports to
stdout that an X session could not be established.

Note: For clarity I've changed the *default* in .xinitrc to starte16 <empty>, and changed
my original post, above, to reflect this.
_________________
Stan: A signal? Why didn't you wake me?
790: It was a distress signal. They only lead to trouble, so I always ignore them. --Lexx
Back to top
View user's profile Send private message
CleanTestr
n00b
n00b


Joined: 15 Jan 2013
Posts: 47
Location: somewhere in Rural Nebraska, USA

PostPosted: Sun Aug 11, 2013 8:51 pm    Post subject: Reply with quote

Going through the emerge logs line-by-line, I found
a missing

rc-update add consolekit default

which has cleared this up.

Additionally, this lack was giving rise to a post-boot Warning,
seen only scrolling by on the screen, and not put into the logs,
of 'needs service twm', and another Warning upon Login of
'.. dbus-daemon-launch .. Success'.
_________________
Stan: A signal? Why didn't you wake me?
790: It was a distress signal. They only lead to trouble, so I always ignore them. --Lexx
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