You are not logged in.

#1 2012-08-20 20:38:06

lsas
Member
Registered: 2010-11-23
Posts: 23

[SOLVED] ck-launch-session error even with consolekit

Hi everybody!

I'm working on my fresh arch install.
I've just install a minimal kde desktop but i've some problem to start it.

I've set my runleve to 5 from inittab and then at the end of it i've added the line like said in the wiki :

x:5:once:/bin/su mydefaultuser -l -c "/bin/bash --login -c startx >/dev/null 2>&1"

Then in the home user folder added .xinitrc like below:

exec ck-launch-session startkde

But when the system start the xorg return the following error:
exec; ck-launch-session: not found


Now i've read some thread on the forum and all said that this error come from the consolekit package.
But i've the package it's already installed in the system and also xorg-xinit

So there's other dipendences that i'm missing or what? Any suggestion ?


Thanks to all

Last edited by lsas (2012-08-21 16:21:19)

Offline

#2 2012-08-20 21:48:55

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] ck-launch-session error even with consolekit

please post the output of the following commands:

pacman -Qi consolekit
which ck-launch-session
echo $PATH

be sure to execute all commands as the user you named "mydefaultuser". This may help us the track down the issue.

On a seperate note: I personally found that those nested su commands to start X are pretty crappy (opinion!), so I switched to the vlock approach:

c1:2345:respawn:/sbin/agetty -a javex -8 -s 38400 tty1 linux

And for .bash_profile

if [[ -z $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
	exec nohup startx > .xlog & vlock
fi

(see Start X at Boot)

While this may possibly not solve your problem, I felt that mentioning this alternative could help you.

Offline

#3 2012-08-20 22:07:55

lsas
Member
Registered: 2010-11-23
Posts: 23

Re: [SOLVED] ck-launch-session error even with consolekit

pacman -Qi consolekit :

Name           : consolekit
Version        : 0.4.6-4
URL            : http://www.freedesktop.org/wiki/Software/ConsoleKit
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : polkit  zlib  libx11  dbus-glib
Optional Deps  : None
Required By    : kdebase-workspace
Conflicts With : None
Replaces       : None
Installed Size : 720.00 KiB
Packager       : Dave Reisner <dreisner@archlinux.org>
Architecture   : x86_64
Build Date     : Sun May 27 06:29:53 2012
Install Date   : Tue Aug 21 00:24:14 2012
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : A framework for defining and tracking users, login sessions, and seats

which ck-launch-session :
/usr/bin/ck-launch-session

echo $PATH :
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl


Unfortunately, as you said, the .bash_profile and vlock does not work. By the way thanks for the advice.

Offline

#4 2012-08-21 08:05:43

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] ck-launch-session error even with consolekit

lsas wrote:

Unfortunately, as you said, the .bash_profile and vlock does not work. By the way thanks for the advice.

So you actually tried this?

What happens im you run "startx" from the command line (make sure it is the same environment where you executed the above commands in)?
The error you have reports that it cannot find ck-launch-session, but the which command showed us that its present. So my guess would be that the environment is not correctly set, i.e. the PATH variable is not correctly set.

Also you could try to alter your initial code to:

x:5:once:/bin/su mydefaultuser -l -c "startx >/dev/null 2>&1"

I am not sure what the reasoning is to put the bash in anyway, but this should as well, too.

Offline

#5 2012-08-21 09:02:19

lsas
Member
Registered: 2010-11-23
Posts: 23

Re: [SOLVED] ck-launch-session error even with consolekit

Yeah, i've tried it but didnt works

I've just tried to execute startx with .xinitrc set to "exec startkde"
And now i'm into kde

But if i just type startx with .xinitrc set with the ck-launch-session option I obtain the same error
Also tried your modify in inittab without result.

Yeah I know that seems there's something wrong with ck-launch-sessions. At first, i was thinking that i need just othere few dependences.. but it's not.

Also the PATH seems ok from the previous command, so i cant understand where's the problem.

Dunno, if I cant get a solution here, even if the wiki raccomands to use .xinitrc method, i think i'll try with kdm/slim.

Thanks for your support by the way
Other ideas ??

Offline

#6 2012-08-21 09:58:02

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] ck-launch-session error even with consolekit

Hmmm, I think I may be running out of ideas.

You could try to run xinit instead of startx, maybe it destroys some environment stuff (which xinit shouldn't). If xinit throws the same error as startx, I think I really am out of ideas :-/

Regards,
javex

Offline

#7 2012-08-21 11:32:48

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: [SOLVED] ck-launch-session error even with consolekit

Do you have the right permissions on .xinitrc?

Offline

#8 2012-08-21 16:20:33

lsas
Member
Registered: 2010-11-23
Posts: 23

Re: [SOLVED] ck-launch-session error even with consolekit

Finally i got it.

The .xinitrc permissions was ok
I've just replace the .xinitrc command from
exec ck-launch-session startkde

to
exec ck-launch-session dbus-launch startkde

Sincerely I didnt understand it properly (why whitout dbus-launch option it cant find ck-launch-session command?) but anyway it's ok.


Now the login logoff seems really slow, but that's another story..

Thank to all guys for your suggestions.

Offline

#9 2012-08-21 16:35:38

javex
Member
Registered: 2011-12-30
Posts: 76

Re: [SOLVED] ck-launch-session error even with consolekit

Wow, I thought about this, but it didn't make sense to me. Thanks for sharing that!

Offline

Board footer

Powered by FluxBB