2 .TH ck-seat-tool 1m "24 Oct 2009" "SunOS 5.11" "Maintenance Commands"
4 ck-seat-tool \- ConsoleKit seat tool
7 \fBck-seat-tool\fR -\fB-add\fR -\fB-display-type=\fItype\fR\fR [-\fB-seat-id=\fIid\fR\fR] [-\fB-session-type=\fItype\fR\fR] [\fB\fIvariable\fR \fIvariable\fR\fR\&...]
9 \fBck-seat-tool\fR -\fB-delete\fR -\fB-session-id=\fIid\fR\fR
11 \fBck-seat-tool\fR [-\fB-help\fR] [-\fB-version\fR]
14 \fBck-seat-tool\fR is a utility that causes ConsoleKit to add or delete
15 a ConsoleKit session in a dymanic fashion\&. When adding a session, the
16 -\fB-display-type\fR option must be specified\&. When deleting a
17 session, the -\fB-session-id\fR option must be specified\&.
19 To use \fBck-seat-tool\fR, it must be run as the same user which is
20 running the main ConsoleKit daemon, which is normally the root user\&. Otherwise
21 the request is ignored\&.
23 When adding a session, the -\fB-seat-id\fR option works as follows:
30 If -\fB-seat-id=\fIid\fR\fR is provided and this
31 seat exists, then a new session will be added to that seat\&.
38 If -\fB-seat-id=\fIid\fR\fR is provided, but
39 this seat does not exist, then a new seat with the specified seat\&.
40 \fIid\fR is created, and a new session added to that seat\&.
47 If -\fB-seat-id=\fIid\fR\fR is not given, a new
48 seat \fIid\fR (Seat#) will be generated, and a new session
54 When adding a session, if session is successfully added, the session ID is
55 printed in the standard output\&.
57 Note that to delete a session which is running on a particular DISPLAY, it
58 may be necessary to run the
59 \fBck\-list\-sessions\fR(1)
60 command to find the corresponding session ID for a given DISPLAY\&.
63 The following options are supported:
67 \fB-\fBa\fR, -\fB-add\fR\fR
70 Add the specified session\&.
77 \fB-\fBd\fR, -\fB-delete\fR\fR
80 Delete the specified session\&.
87 \fB-\fB-display-type=\fItype\fR\fR\fR
90 This option is only available when adding a session\&. Specifies the display
91 \fItype\fR in the ConsoleKit display configuration that
92 will be associated with the session\&.
99 \fB-\fBh\fR, -\fB-help\fR\fR
102 Display detailed usage message\&.
109 \fB-\fB-seat-id=\fIid\fR\fR\fR
112 This option is only available when adding a session\&. Specifies the seat
113 \fIid\fR that will be associated with the session\&.
120 \fB-\fB-session-id=\fIid\fR\fR\fR
123 This option is only available when deleting a session\&. Specifies the session
124 \fIid\fR associated with session that will be deleted\&.
131 \fB-\fB-session-type=\fItype\fR\fR\fR
134 This option is only available when adding a session\&. Specifies the session
135 \fItype\fR that will be associated with the session\&. The
136 default value is "LoginWindow"\&.
143 \fB-\fBV\fR, -\fB-version\fR\fR
146 Display the version of the \fBck-seat-tool\fR application\&.
152 The following operand is supported only when adding a session:
156 \fB\fB\fIvariable\fR\fR\fR
159 The \fIvariable\fR operand is only available when adding a
160 sesssion\&. The command to run when starting a session is specified in a
161 ConsoleKit display configuration file named
162 \fB/etc/ConsoleKit/displays\&.d/\fIdisplay_type\fR\&.display\fR,
163 where \fIdisplay_type\fR is specified by the
164 -\fB-display-type\fR option\&. This file is in standard INI format\&.
165 The command is specified by the key "X11/Exec"\&. For example:
170 Exec=/usr/X11/bin/Xorg $display -br -verbose $vt
173 Arguments that start with the "$" sign are variables\&. The values
174 for these variables can be specified with the
175 \fIvariable\fR operand\&. For example, if this value is
176 "display=:0 vt=vt9", this would set the "$display"
177 argument to ":0" and the "$vt" argument to "vt9"\&.
183 \fBExample 1: To add a session to the next available seat with a display type of
184 "Local" and start it on display ":20"\fR
188 example% \fBck-seat-tool -\fBa\fR -\fB-display-type=Local\fR display=:20\fR
191 \fBExample 2: To add a session to Seat10 with a session type of
192 "LoginWindow", a display type of "Local", and
193 start it on display ":20"\fR
197 example% \fBck-seat-tool -\fBa\fR -\fB-session-type=LoginWindow\fR -\fB-display-type=Local\fR -\fB-seat-id=Seat10\fR display=:20\fR
200 \fBExample 3: To remove the session with session ID
201 "/org/freedesktop/ConsoleKit/Session2"\fR
205 example% \fBck-seat-tool -\fB-d\fR -\fB-session-id=/org/freedesktop/ConsoleKit/Session2\fR\fR
209 The following exit values are returned:
216 Application exited successfully
226 Application exited with failure
232 The following files are used by this application:
236 \fB\fB/usr/sbin/ck-seat-tool\fR\fR
239 Executable for ConsoleKit seat tool\&.
246 \fB\fB/etc/ConsoleKit/displays\&.d\fR\fR
249 ConsoleKit display configuration files\&.
257 for descriptions of the following attributes:
261 cw(2.750000i)| cw(2.750000i)
262 lw(2.750000i)| lw(2.750000i).
263 ATTRIBUTE TYPE
\aATTRIBUTE VALUE
264 Availability
\alibrary/xdg/consolekit
265 Interface stability
\aVolatile
271 \fBck-launch-session\fR(1),
272 \fBck-list-sessions\fR(1),
273 \fBconsole-kit-daemon\fR(1m),
277 Written by Brian Cameron, Sun Microsystems Inc\&., 2009\&.
278 Copyright (c) 2009 by Sun Microsystems, Inc\&.
279 ...\" created by instant / solbook-to-man, Tue 27 Jan 2015, 17:22
280 ...\" LSARC 2009/432 ConsoleKit