Home | News | Download | Packages | Forum | Wiki | Github

ConsoleKit session configuration


#1

On the forum I found this message about “ConcoleKit2”:

OK, I have dbus/cgmanager/consolekit services started by runit.

Now take a look at the Void’s wiki:

https://wiki.voidlinux.eu/Post_Installation

The wiki says:

"Alternativly if you want to configure it per user go to your home directory, create and edit the file .xinitrc and put these lines inside:

setxkbmap de /*Adapt to your own keyboard layout
exec startxfce4 /*Adapt to your installed DE/WM

Lastly run startx to start an Xfce4 session."

Well, so I put this line “exec startxfce4” in my .xinitrc, then I run “startx” to launch Xfce…

And now when I run “ck-list-sessions” in the Xfce-terminal I can see my current session is NOT active:

Session1:
unix-user = '1000’
realname = 'lennart’
seat = 'Seat1’
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1’
remote-host-name = ''
is-local = TRUE
on-since = '2016-11-21T08:32:39.354774Z’
login-session-id = '1’
XDG_RUNTIME_DIR = ‘/run/user/1000’

So I googled around to find some help about consolekit sessions and I found this:

Instead of “exec startxfce4” I must add the line “exec ck-launch-session startxfce4” in my .xinitrc the get an ACTIVE session:

Session1:
unix-user = '1000’
realname = 'lennart’
seat = 'Seat1’
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1’
remote-host-name = ''
is-local = TRUE
on-since = '2016-11-21T08:32:39.354774Z’
login-session-id = '1’
XDG_RUNTIME_DIR = ‘/run/user/1000’

Session2:
unix-user = '1000’
realname = 'lennart’
seat = 'Seat1’
session-type = ''
active = TRUE
x11-display = ':0’
x11-display-device = '/dev/tty5’
display-device = '/dev/tty1’
remote-host-name = ''
is-local = TRUE
on-since = '2016-11-21T09:21:29.500005Z’
login-session-id = '1’
XDG_RUNTIME_DIR = ‘/run/user/1000’

So maybe we need to modify the wiki to get an active consolekit session in X ?
Thanks.


#2

Hey nobody answers me about ConsoleKit ? Why ?


#3

It’s possible that very few people use consolekit. I have not used a DE for a while so I might be wrong.

Why do you want to run it? What features are you after?


#4

When I install Void on my system ConsoleKit is ALWAYS active. I thought it was the same for you…

When you run “htop” or “top” you don’t see “console-kit-daemon” processes running ??


#5

Nope. I just checked to confirm.

Perhaps your desktop environment or login manager starts it?


#6

Well, I usually use LXQT, LXDE, or XFCE desktop environments, I don’t like Gnome or MATE…

When I install one of them ConsoleKit is AUTOMATICALLY installed because it is a dependency.

So ConsoleKit is installed, ok, but I don’t do the SYMLINK between /etc/sv/consolekit and /var/service.

I don’t use any Display Manager (lxdm, gdm, LightDM…), I prefer login on console TTY.

So when I start my computer I login on the first TTY, and with “htop” I can see “console-kit-daemon” processes already running.

I don’t understand why “console"kit-daemon” is already started ??.. :worried:

And what “console-kit-daemon” is doing if it can’t give me the permissions I need for my Desktop Environment ??

I hope someone can explain this things to me.


#7

Check your logs to find out when it’s getting kicked off?


(Userx) #9

I don’t understand why “console"kit-daemon” is already started ??.

check /var/service
if consolekit is in there that is why it is already started.


#10

@userxbw @syngin @Veyrdite

I found the problem:
I always do the symlink /etc/sv/dbus --> /var/service/dbus without even thinking about it but…

In fact, from what I understand, “console-kit-daemon” is automatically started by DBUS:

/usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service

[D-BUS Service]
Name=org.freedesktop.ConsoleKit
Exec=/usr/bin/console-kit-daemon --no-daemon
User=root