Bug 867749 - ck-list-sessions does not list sessions
Summary: ck-list-sessions does not list sessions
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ConsoleKit
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-18 08:34 UTC by Marko Myllynen
Modified: 2013-06-19 14:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-19 14:43:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marko Myllynen 2012-10-18 08:34:58 UTC
Description of problem:
root@localhost:~# ck-list-sessions
root@localhost:~# 

Happens on both F17/F18.

Comment 1 Matthias Clasen 2012-10-21 20:45:31 UTC
ck-list-sessions will only list sessions if you're using ConsoleKit to track sessions. But we're using logind for that purpose now.

Comment 2 Marko Myllynen 2012-10-22 07:51:26 UTC
> ck-list-sessions will only list sessions if you're using ConsoleKit to track
> sessions. But we're using logind for that purpose now.

Yes, so perhaps a tool which doesn't work should be removed or at least changed to return an error code.

FWIW, the Fedora Feature page states that it should work when ConsoleKit is installed:

Also verify that ConsoleKit continues to work as expected when it is installed. This can be done e.g. with the help of ck-list-sessions 

http://fedoraproject.org/wiki/Features/ckremoval

Comment 3 Rex Dieter 2013-06-19 14:43:45 UTC
2 prerequisites for ck-list-sessions to work.

* ConsoleKit-x11 rpm installed
* login manager configured to use ^^

for the latter, login manager either needs to support CK natively (none do these days, afaik, it's largely deprecated), or via pam_ck_connector.so , /etc/pam.d/lightdm contains:
-session    optional    pam_ck_connector.so
for example.

If you want this to work, install ConsoleKit-x11 and configure your login manager as suggested.


Note You need to log in before you can comment on or make changes to this bug.