2 .TH ck-list-sessions 1 "22 Oct 2009" "SunOS 5.11" "User Commands"
4 ck-list-sessions \- Show ConsoleKit Session Information
7 \fBck-list-sessions\fR [-\fB-all\fR] [-\fB-sid=\fIsid\fR\fR] [-\fB-format=\fIformat\fR\fR] [-\fB-help\fR] [-\fB-version\fR]
10 \fBck-list-sessions\fR is a utility that displays information from the
11 ConsoleKit database\&. By default, only open sessions are shown\&. The
12 -\fB-all\fR option can be used to display all existing sessions on
13 the system\&. \fBck-list-sessions\fR returns information about each ConsoleKit
14 session\&. Users can specify which properties to display via the
15 -\fB-format\fR option\&.
17 The following properties can be displayed for each session:
20 The following options are supported:
24 \fB-\fBa\fR, -\fB-all\fR\fR
27 Show all ConsoleKit sessions\&. If this option is not provided, only open
35 \fB-\fBs\fR, -\fB-sid=\fIsid\fR\fR\fR
38 Show one ConsoleKit session with session id \fIsid\fR\&.
45 \fB-\fBf\fR, -\fB-format=\fIformat\fR\fR\fR
48 Display information using the specified \fIformat\fR\&. The
49 \fIformat\fR value is a list of properties to display
50 separated by commas\&.
57 \fB-\fBh\fR, -\fB-help\fR\fR
60 Display detailed usage message\&.
67 \fB-\fBV\fR, -\fB-version\fR\fR
70 Display the version of the \fBck-list-sessions\fR application\&.
74 .SH "EXTENDED DESCRIPTION"
75 .SS "ConsoleKit session properties"
77 For each session, the following session properties are displayed:
84 The user id value associated with the session\&.
94 The name of the user associated with the session\&.
104 The ID for the ConsoleKit Seat associated with the session\&.
114 The ConsoleKit session type\&. This value is specified by the "Type"
115 key in the ConsoleKit session configuration file associated with this session\&.
125 The ConsoleKit display type\&. This value is specified by the
126 "DisplayTemplate" key in the ConsoleKit session configuration file
127 associated with this session\&.
137 The value is "TRUE" if the session is open, and "FALSE"
148 The value is "TRUE" if the session is active on the seat to which it
149 is attached, and "FALSE" otherwise\&.
159 The value of the X11 DISPLAY environment variable for this session if one is
167 \fBx11-display-device\fR
170 The value of the display device that the X11 display for the session is
171 connected to\&. If there is no x11-display set, then this value is undefined\&.
181 The display device associated with the session\&.
191 If the session is not local, the value is the host name associated with the
192 session\&. If the session is local, the value is empty\&.
202 The value is "TRUE" if the session is local, and "FALSE"
213 An ISO 8601 date-time string that corresponds to the time the session started\&.
220 \fBlogin-session-id\fR
223 The value of the login session ID that the underlying system uses to enforce
224 session boundaries\&. If there is no login session ID set then this value is an
232 \fBidle-since-hint\fR
235 An ISO 8601 date-time string that corresponds to the time of the last change of
236 the idle-hint\&. This is a hint used to indicate that the session may be idle\&.
237 For sessions with a x11-display set (ie\&. graphical sessions), it is up to each
238 session to delegate the responsibility for updating this value\&. Typically, the
239 screensaver will set this\&.
241 However, for non-graphical sessions with a display-device set the Session
242 object itself will periodically update this value based on the activity
243 detected on the display-device itself\&.
245 This should not be considered authoritative\&.
251 \fBExample 1: Show running sessions\&.\fR
255 example% \fBck-list-sessions\fR
258 This command would generate output like the following for each session:
264 realname = \&'GDM Reserved UID\&'
266 session-type = \&'LoginWindow\&'
267 display-type = \&'Local\&'
270 x11-display = \&':0\&'
271 x11-display-device = \&'/dev/console\&'
272 display-device = \&'/dev/console\&'
273 remote-host-name = \&'\&'
274 is-local = \&'TRUE\&'
275 on-since = \&'2009-08-11T06:46:42\&.941134Z\&'
276 login-session-id = \&'\&'
277 idle-since-hint = \&'\&'
280 \fBExample 2: Show only the session-id, unix-user, and display-type properties\&.\fR
284 example% \fBck-list-sessions -\fB-format="session-id,unix-user,display-type"\fR\fR
287 This command would generate output like the following for each session:
291 SessionSeat1Local 50 Local
295 The following files are used by this application:
299 \fB\fB/usr/bin/ck-list-sessions\fR\fR
302 Executable for Show ConsoleKit Session Information\&.
309 \fB\fB/etc/ConsoleKit/session\&.d\fR\fR
312 ConsoleKit session configuration files\&.
320 for descriptions of the following attributes:
324 cw(2.750000i)| cw(2.750000i)
325 lw(2.750000i)| lw(2.750000i).
326 ATTRIBUTE TYPE
\aATTRIBUTE VALUE
327 Availability
\alibrary/xdg/consolekit
328 Interface stability
\aVolatile
334 \fBck-launch-session\fR(1),
335 \fBck-seat-tool\fR(1m),
336 \fBconsole-kit-daemon\fR(1m),
340 Written by Brian Cameron, Sun Microsystems Inc\&., 2009\&.
341 Copyright (c) 2009 by Sun Microsystems, Inc\&.
342 ...\" created by instant / solbook-to-man, Tue 27 Jan 2015, 17:22
343 ...\" LSARC 2009/432 ConsoleKit