summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2017-06-02 04:31:32 +0300
committerEric Koegel <eric.koegel@gmail.com>2017-06-02 04:31:32 +0300
commite54347881510d5271d062955c8816aedc0812506 (patch)
tree98a4adbb52a48a9a97b694dad01664f21dad9bfc
parent5070f141d626022aa1e92c75c7b1765f72cae9c6 (diff)
downloadConsoleKit2-gh-pages.tar.gz
Update for 1.1.2gh-pages
-rw-r--r--index.html224
1 files changed, 117 insertions, 107 deletions
diff --git a/index.html b/index.html
index 5079214..0cc5f59 100644
--- a/index.html
+++ b/index.html
@@ -51,8 +51,8 @@ You can easily join the channel by going to <a href="http://webchat.freenode.net
<!-- Content pasted from autogenerated doc/dbus/ConsoleKit.html -->
-<div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="preface"><a href="#idm140533366592784">Introduction</a></span></dt><dt><span class="part"><a href="#idm140533367345200">I. Concepts</a></span></dt><dd><dl><dt><span class="chapter"><a href="#introduction">1. Introduction</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367343472">About</a></span></dt><dt><span class="sect1"><a href="#idm140533367341152">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm140533363620448">Relevant art</a></span></dt></dl></dd><dt><span class="chapter"><a href="#terms">2. Terminology</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367312432">Session</a></span></dt><dt><span class="sect1"><a href="#idm140533367308960">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm140533367306848">Seat</a></span></dt></dl></dd><dt><span class="chapter"><a href="#design">3. Design</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367322064">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm140533362581088">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm140533362580064">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362574864">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362567280">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm140533362563600">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm140533362558304">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm140533362549888">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm140533362546192">Session Application</a></span></dt></dl></dd></dl></dd></dl></dd><dt><span class="part"><a href="#idm140533362535440">II. Reference</a></span></dt><dd><dl><dt><span class="reference"><a href="#dbus-reference">I. D-Bus API Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="#Manager">org.freedesktop.ConsoleKit.Manager</a></span><span class="refpurpose"> — Manager interface</span></dt><dt><span class="refentrytitle"><a href="#Seat">org.freedesktop.ConsoleKit.Seat</a></span><span class="refpurpose"> — Seat interface</span></dt><dt><span class="refentrytitle"><a href="#Session">org.freedesktop.ConsoleKit.Session</a></span><span class="refpurpose"> — Session interface</span></dt></dl></dd></dl></dd><dt><span class="index"><a href="#idm140533361033264">Index</a></span></dt></dl></div><div class="preface"><div class="titlepage"><div><div><h1 class="title"><a id="idm140533366592784"></a>Introduction</h1></div></div></div><p>
- </p></div><div class="part"><div class="titlepage"><div><div><h1 class="title"><a id="idm140533367345200"></a>Part I. Concepts</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="chapter"><a href="#introduction">1. Introduction</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367343472">About</a></span></dt><dt><span class="sect1"><a href="#idm140533367341152">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm140533363620448">Relevant art</a></span></dt></dl></dd><dt><span class="chapter"><a href="#terms">2. Terminology</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367312432">Session</a></span></dt><dt><span class="sect1"><a href="#idm140533367308960">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm140533367306848">Seat</a></span></dt></dl></dd><dt><span class="chapter"><a href="#design">3. Design</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm140533367322064">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm140533362581088">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm140533362580064">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362574864">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362567280">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm140533362563600">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm140533362558304">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm140533362549888">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm140533362546192">Session Application</a></span></dt></dl></dd></dl></dd></dl></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="introduction"></a>Chapter 1. Introduction</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm140533367343472">About</a></span></dt><dt><span class="sect1"><a href="#idm140533367341152">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm140533363620448">Relevant art</a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367343472"></a>About</h2></div></div></div><p>
+<div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="preface"><a href="#idm139836757640704">Introduction</a></span></dt><dt><span class="part"><a href="#idm139836757779680">I. Concepts</a></span></dt><dd><dl><dt><span class="chapter"><a href="#introduction">1. Introduction</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836757772400">About</a></span></dt><dt><span class="sect1"><a href="#idm139836757776144">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm139836757774608">Relevant art</a></span></dt></dl></dd><dt><span class="chapter"><a href="#terms">2. Terminology</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836754057376">Session</a></span></dt><dt><span class="sect1"><a href="#idm139836754053904">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm139836754059984">Seat</a></span></dt></dl></dd><dt><span class="chapter"><a href="#design">3. Design</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836757770240">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm139836753015472">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm139836753014448">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753009248">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753001664">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm139836752997984">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm139836752992688">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm139836752984272">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm139836752980576">Session Application</a></span></dt></dl></dd></dl></dd></dl></dd><dt><span class="part"><a href="#idm139836752969552">II. Reference</a></span></dt><dd><dl><dt><span class="reference"><a href="#dbus-reference">I. D-Bus API Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="#Manager">org.freedesktop.ConsoleKit.Manager</a></span><span class="refpurpose"> — Manager interface</span></dt><dt><span class="refentrytitle"><a href="#Seat">org.freedesktop.ConsoleKit.Seat</a></span><span class="refpurpose"> — Seat interface</span></dt><dt><span class="refentrytitle"><a href="#Session">org.freedesktop.ConsoleKit.Session</a></span><span class="refpurpose"> — Session interface</span></dt></dl></dd></dl></dd><dt><span class="index"><a href="#idm139836751392560">Index</a></span></dt></dl></div><div class="preface"><div class="titlepage"><div><div><h1 class="title"><a id="idm139836757640704"></a>Introduction</h1></div></div></div><p>
+ </p></div><div class="part"><div class="titlepage"><div><div><h1 class="title"><a id="idm139836757779680"></a>Part I. Concepts</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="chapter"><a href="#introduction">1. Introduction</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836757772400">About</a></span></dt><dt><span class="sect1"><a href="#idm139836757776144">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm139836757774608">Relevant art</a></span></dt></dl></dd><dt><span class="chapter"><a href="#terms">2. Terminology</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836754057376">Session</a></span></dt><dt><span class="sect1"><a href="#idm139836754053904">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm139836754059984">Seat</a></span></dt></dl></dd><dt><span class="chapter"><a href="#design">3. Design</a></span></dt><dd><dl><dt><span class="sect1"><a href="#idm139836757770240">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm139836753015472">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm139836753014448">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753009248">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753001664">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm139836752997984">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm139836752992688">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm139836752984272">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm139836752980576">Session Application</a></span></dt></dl></dd></dl></dd></dl></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="introduction"></a>Chapter 1. Introduction</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm139836757772400">About</a></span></dt><dt><span class="sect1"><a href="#idm139836757776144">Defining the Problem</a></span></dt><dt><span class="sect1"><a href="#idm139836757774608">Relevant art</a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836757772400"></a>About</h2></div></div></div><p>
ConsoleKit2 is a framework for keeping track of the various
users, sessions, and seats present on a system. It
provides a mechanism for software to react to changes of any of
@@ -66,15 +66,15 @@ You can easily join the channel by going to <a href="http://webchat.freenode.net
William Jon McCann was the primary maintainer of ConsoleKit and
most of this documentation was written by him for ConsoleKit. It
has been adapted for ConsoleKit2.
- </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367341152"></a>Defining the Problem</h2></div></div></div><p>
+ </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836757776144"></a>Defining the Problem</h2></div></div></div><p>
A simple example is two users logging into a computer at the same time.
They may be sharing the same set of hardware for their graphical session,
such as the monitor, keyboard, and mouse. ConsoleKit2 will keep track of
those resouces and which session is active and should have use of that
hardware at a given time.
- </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533363620448"></a>Relevant art</h2></div></div></div><p>
+ </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836757774608"></a>Relevant art</h2></div></div></div><p>
Logind is a Linux daemon providing the similar functionality to ConsoleKit2.
- </p></div></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="terms"></a>Chapter 2. Terminology</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm140533367312432">Session</a></span></dt><dt><span class="sect1"><a href="#idm140533367308960">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm140533367306848">Seat</a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367312432"></a>Session</h2></div></div></div><p>
+ </p></div></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="terms"></a>Chapter 2. Terminology</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm139836754057376">Session</a></span></dt><dt><span class="sect1"><a href="#idm139836754053904">Session leader</a></span></dt><dt><span class="sect1"><a href="#idm139836754059984">Seat</a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836754057376"></a>Session</h2></div></div></div><p>
A session is a collection of all processes that share knowledge of a
secret. In the typical (or ideal) case, these processes all originate
from a single common ancestor.
@@ -96,7 +96,7 @@ process ancestry. So, it is not possible to enforce session boundaries
other than on a per-user basis. For example, we don't yet have a way
to prevent a process from moving between sessions owned by the same
user.
- </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367308960"></a>Session leader</h2></div></div></div><p>
+ </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836754053904"></a>Session leader</h2></div></div></div><p>
The session leader is the process that requests that a new session be
opened. It does this by connecting to the D-Bus system bus and using
either org.freedesktop.ConsoleKit.Manager.OpenSession() or
@@ -106,7 +106,7 @@ bus is lost or it calls org.freedesktop.ConsoleKit.Manager.CloseSession().
</p><p>
The session leader is the only process for which CloseSession() will
be allowed.
- </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367306848"></a>Seat</h2></div></div></div><p>
+ </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836754059984"></a>Seat</h2></div></div></div><p>
A seat is a collection of sessions and a set of hardware (usually at
least a keyboard and mouse). Only one session may be active on a
seat at a time.
@@ -116,7 +116,7 @@ a system will be added the the first Seat and every other Session
will be added to its own Seat.
</p><p>
True, hardware, multi-seat capabilities will be added in a later release.
- </p></div></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="design"></a>Chapter 3. Design</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm140533367322064">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm140533362581088">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm140533362580064">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362574864">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm140533362567280">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm140533362563600">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm140533362558304">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm140533362549888">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm140533362546192">Session Application</a></span></dt></dl></dd></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533367322064"></a>Session Lifecycle</h2></div></div></div><p>
+ </p></div></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="design"></a>Chapter 3. Design</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="#idm139836757770240">Session Lifecycle</a></span></dt><dt><span class="sect1"><a href="#idm139836753015472">Expected Usage</a></span></dt><dd><dl><dt><span class="sect2"><a href="#idm139836753014448">Text Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753009248">Graphical Login Manager</a></span></dt><dt><span class="sect2"><a href="#idm139836753001664">System Daemon</a></span></dt><dt><span class="sect2"><a href="#idm139836752997984">Hardware Abstraction Layer</a></span></dt><dt><span class="sect2"><a href="#idm139836752992688">Fast User Switching Agent</a></span></dt><dt><span class="sect2"><a href="#idm139836752984272">Session Daemon (aka Policy Agent)</a></span></dt><dt><span class="sect2"><a href="#idm139836752980576">Session Application</a></span></dt></dl></dd></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836757770240"></a>Session Lifecycle</h2></div></div></div><p>
The session leader process is responsible for asking
ConsoleKit2 to open a new session. In this respect, it is
similar to the traditional POSIX user login accounting framework.
@@ -133,14 +133,14 @@ ConsoleKit2 will decide, based on the information associated with the session, w
It will also be determined, based on the same set of information, whether the Session will control the hardware associated with the Seat. In other words, whether the Session will be active for the Seat it is attached to. The exact mechanism for this determination depends on the type of Seat and the capabilities of the host system.
</p><p>
The Session will remain open until the Session Leader disconnects from the D-Bus system bus or calls org.freedesktop.ConsoleKit.Manager.CloseSession(). The session will be removed from its Seat, and deregistered.
- </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140533362581088"></a>Expected Usage</h2></div></div></div><p>Use of this service will usually follow one of the following patterns:</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362580064"></a>Text Login Manager</h3></div></div></div><p>This pattern operates as the Session Leader for a new Session. This pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To open a new Session.</li><li class="listitem">To set properties for the Session.</li><li class="listitem">To maintain a connection to the D-Bus system bus.</li><li class="listitem">To close the Session at logout.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362574864"></a>Graphical Login Manager</h3></div></div></div><p>In addition to the requirements for the Text Graphical Login Manager, this pattern is typically used to show information about currently open sessions. It needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which Seat it is running on.</li><li class="listitem">To know if the current seat supports session switching.</li><li class="listitem">A list of all sessions on the current Seat.</li><li class="listitem">To know which session is active for the current Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">To know when sessions are added or removed.</li><li class="listitem">Access to the metadata for any open Session.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362567280"></a>System Daemon</h3></div></div></div><p>This is generally a daemon process running outside of a user session as a special user. This pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To know if any user sessions are open.</li><li class="listitem">To know if the system is currently being used.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362563600"></a>Hardware Abstraction Layer</h3></div></div></div><p>This is a special case of System Daemon that provides catalogs and control mechanisms for hardware devices. In addition to the requirements of System Daemon, this pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine what hardware is associated with a Seat.</li><li class="listitem">To determine what Session is active and inactive on a particular Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">To determine what Session a process belongs to.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362558304"></a>Fast User Switching Agent</h3></div></div></div><p>This is related to the Graphical Login Manager and provides a shortcut to similar functionality. It is usually a tool available in the user session that allows one to quickly switch to another user session. This pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To determine which Seat it is running on.</li><li class="listitem">To know if the current seat supports session switching.</li><li class="listitem">A list of all sessions on the current Seat.</li><li class="listitem">Which session is active for the current Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">Access to the metadata for any open Session.</li><li class="listitem">To know when sessions are added or removed.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362549888"></a>Session Daemon (aka Policy Agent)</h3></div></div></div><p>This is typically a daemon running in a user session that acts on policy only when the session is active. This pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To know when the session active state changes.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm140533362546192"></a>Session Application</h3></div></div></div><p>This is typically an application running in a user session that may alter its behavior when the session active state changes. This pattern needs:
- </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To know when the session active state changes.</li></ol></div></div></div></div></div><div class="part"><div class="titlepage"><div><div><h1 class="title"><a id="idm140533362535440"></a>Part II. Reference</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="reference"><a href="#dbus-reference">I. D-Bus API Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="#Manager">org.freedesktop.ConsoleKit.Manager</a></span><span class="refpurpose"> — Manager interface</span></dt><dt><span class="refentrytitle"><a href="#Seat">org.freedesktop.ConsoleKit.Seat</a></span><span class="refpurpose"> — Seat interface</span></dt><dt><span class="refentrytitle"><a href="#Session">org.freedesktop.ConsoleKit.Session</a></span><span class="refpurpose"> — Session interface</span></dt></dl></dd></dl></div><div class="reference"><div class="titlepage"><div><div><h1 class="title"><a id="dbus-reference"></a>D-Bus API Reference</h1></div></div><hr /></div><div class="partintro"><div></div><p>
+ </p></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139836753015472"></a>Expected Usage</h2></div></div></div><p>Use of this service will usually follow one of the following patterns:</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836753014448"></a>Text Login Manager</h3></div></div></div><p>This pattern operates as the Session Leader for a new Session. This pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To open a new Session.</li><li class="listitem">To set properties for the Session.</li><li class="listitem">To maintain a connection to the D-Bus system bus.</li><li class="listitem">To close the Session at logout.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836753009248"></a>Graphical Login Manager</h3></div></div></div><p>In addition to the requirements for the Text Graphical Login Manager, this pattern is typically used to show information about currently open sessions. It needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which Seat it is running on.</li><li class="listitem">To know if the current seat supports session switching.</li><li class="listitem">A list of all sessions on the current Seat.</li><li class="listitem">To know which session is active for the current Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">To know when sessions are added or removed.</li><li class="listitem">Access to the metadata for any open Session.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836753001664"></a>System Daemon</h3></div></div></div><p>This is generally a daemon process running outside of a user session as a special user. This pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To know if any user sessions are open.</li><li class="listitem">To know if the system is currently being used.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836752997984"></a>Hardware Abstraction Layer</h3></div></div></div><p>This is a special case of System Daemon that provides catalogs and control mechanisms for hardware devices. In addition to the requirements of System Daemon, this pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine what hardware is associated with a Seat.</li><li class="listitem">To determine what Session is active and inactive on a particular Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">To determine what Session a process belongs to.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836752992688"></a>Fast User Switching Agent</h3></div></div></div><p>This is related to the Graphical Login Manager and provides a shortcut to similar functionality. It is usually a tool available in the user session that allows one to quickly switch to another user session. This pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To determine which Seat it is running on.</li><li class="listitem">To know if the current seat supports session switching.</li><li class="listitem">A list of all sessions on the current Seat.</li><li class="listitem">Which session is active for the current Seat.</li><li class="listitem">To know when the session active state changes.</li><li class="listitem">Access to the metadata for any open Session.</li><li class="listitem">To know when sessions are added or removed.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836752984272"></a>Session Daemon (aka Policy Agent)</h3></div></div></div><p>This is typically a daemon running in a user session that acts on policy only when the session is active. This pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To know when the session active state changes.</li></ol></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139836752980576"></a>Session Application</h3></div></div></div><p>This is typically an application running in a user session that may alter its behavior when the session active state changes. This pattern needs:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">To determine which session it is running in.</li><li class="listitem">To know when the session active state changes.</li></ol></div></div></div></div></div><div class="part"><div class="titlepage"><div><div><h1 class="title"><a id="idm139836752969552"></a>Part II. Reference</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="reference"><a href="#dbus-reference">I. D-Bus API Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="#Manager">org.freedesktop.ConsoleKit.Manager</a></span><span class="refpurpose"> — Manager interface</span></dt><dt><span class="refentrytitle"><a href="#Seat">org.freedesktop.ConsoleKit.Seat</a></span><span class="refpurpose"> — Seat interface</span></dt><dt><span class="refentrytitle"><a href="#Session">org.freedesktop.ConsoleKit.Session</a></span><span class="refpurpose"> — Session interface</span></dt></dl></dd></dl></div><div class="reference"><div class="titlepage"><div><div><h1 class="title"><a id="dbus-reference"></a>D-Bus API Reference</h1></div></div><hr /></div><div class="partintro"><div></div><p>
ConsoleKit2 provides a D-Bus API for programs to obtain information about the
users, sessions, and seats that are present on a system.
</p><p>
@@ -193,7 +193,7 @@ The Session will remain open until the Session Leader disconnects from the D-Bus
out 'ao' sessions)
<a class="link" href="#Manager.GetSystemIdleHint">GetSystemIdleHint</a> (out 'b' idle_hint)
<a class="link" href="#Manager.GetSystemIdleSinceHint">GetSystemIdleSinceHint</a> (out 's' iso8601_datetime)
-</pre></div><div class="refsect1"><a id="idm140533362450368"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Manager::SeatAdded">SeatAdded</a> ('o' sid)
+</pre></div><div class="refsect1"><a id="idm139836752884784"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Manager::SeatAdded">SeatAdded</a> ('o' sid)
<a class="link" href="#Manager::SeatRemoved">SeatRemoved</a> ('o' sid)
<a class="link" href="#Manager::SessionNew">SessionNew</a> ('s' session_id,
'o' object_path)
@@ -202,19 +202,19 @@ The Session will remain open until the Session Leader disconnects from the D-Bus
<a class="link" href="#Manager::SystemIdleHintChanged">SystemIdleHintChanged</a> ('b' hint)
<a class="link" href="#Manager::PrepareForShutdown">PrepareForShutdown</a> ('b' active)
<a class="link" href="#Manager::PrepareForSleep">PrepareForSleep</a> ('b' active)
-</pre></div><div class="refsect1"><a id="idm140533362444096"></a><h2>Implemented Interfaces</h2><p>
+</pre></div><div class="refsect1"><a id="idm139836752878672"></a><h2>Implemented Interfaces</h2><p>
Objects implementing org.freedesktop.ConsoleKit.Manager also implements
org.freedesktop.DBus.Introspectable,
org.freedesktop.DBus.Properties
- </p></div><div class="refsect1"><a id="idm140533362442288"></a><h2>Description</h2><p></p></div><div class="refsect1"><a id="idm140533362440784"></a><h2>Details</h2><div class="refsect2"><a id="idm140533362439664"></a><h3><a id="Manager.Restart"></a>Restart ()</h3><a id="idm140533362438672" class="indexterm"></a><pre class="programlisting">Restart ()</pre><p>This method initiates a request to restart (ie. reboot) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p></div><div class="refsect2"><a id="idm140533362435984"></a><h3><a id="Manager.CanRestart"></a>CanRestart ()</h3><a id="idm140533362434992" class="indexterm"></a><pre class="programlisting">CanRestart (out 'b' can_restart)</pre><p>This method returns whether the user is authorized to restart the computer system.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_restart</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362430880"></a><h3><a id="Manager.Stop"></a>Stop ()</h3><a id="idm140533362429888" class="indexterm"></a><pre class="programlisting">Stop ()</pre><p>This method initiates a request to stop (ie. shutdown) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p></div><div class="refsect2"><a id="idm140533362427200"></a><h3><a id="Manager.CanStop"></a>CanStop ()</h3><a id="idm140533362426208" class="indexterm"></a><pre class="programlisting">CanStop (out 'b' can_stop)</pre><p>This method returns whether the user is authorized to shutdown the computer system.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_stop</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362422096"></a><h3><a id="Manager.Reboot"></a>Reboot ()</h3><a id="idm140533362421104" class="indexterm"></a><pre class="programlisting">Reboot (in 'b' policykit_interactivity)</pre><p>This method emulates the logind implementation. This method initiates a request to reboot the computer system.
+ </p></div><div class="refsect1"><a id="idm139836752876864"></a><h2>Description</h2><p></p></div><div class="refsect1"><a id="idm139836752875360"></a><h2>Details</h2><div class="refsect2"><a id="idm139836752874240"></a><h3><a id="Manager.Restart"></a>Restart ()</h3><a id="idm139836752873248" class="indexterm"></a><pre class="programlisting">Restart ()</pre><p>This method initiates a request to restart (ie. reboot) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p></div><div class="refsect2"><a id="idm139836752870560"></a><h3><a id="Manager.CanRestart"></a>CanRestart ()</h3><a id="idm139836752869568" class="indexterm"></a><pre class="programlisting">CanRestart (out 'b' can_restart)</pre><p>This method returns whether the user is authorized to restart the computer system.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_restart</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752865456"></a><h3><a id="Manager.Stop"></a>Stop ()</h3><a id="idm139836752864464" class="indexterm"></a><pre class="programlisting">Stop ()</pre><p>This method initiates a request to stop (ie. shutdown) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p></div><div class="refsect2"><a id="idm139836752861776"></a><h3><a id="Manager.CanStop"></a>CanStop ()</h3><a id="idm139836752860784" class="indexterm"></a><pre class="programlisting">CanStop (out 'b' can_stop)</pre><p>This method returns whether the user is authorized to shutdown the computer system.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_stop</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752856672"></a><h3><a id="Manager.Reboot"></a>Reboot ()</h3><a id="idm139836752855680" class="indexterm"></a><pre class="programlisting">Reboot (in 'b' policykit_interactivity)</pre><p>This method emulates the logind implementation. This method initiates a request to reboot the computer system.
</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm140533362416192"></a><h3><a id="Manager.CanReboot"></a>CanReboot ()</h3><a id="idm140533362415200" class="indexterm"></a><pre class="programlisting">CanReboot (out 's' can_reboot)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports rebooting and whether the calling user is eligible to reboot the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned rebooting is not available because of hardware support.</p><p>If "yes" is returned rebooting is supported and the user may suspend without further authentication.</p><p>If "no" is returned rebooting is available but the user is not allowed to reboot.</p><p>If "challenge" is returned rebooting is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_reboot</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362407968"></a><h3><a id="Manager.PowerOff"></a>PowerOff ()</h3><a id="idm140533362406976" class="indexterm"></a><pre class="programlisting">PowerOff (in 'b' policykit_interactivity)</pre><p>This method initiates a request to shutdown the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm140533362402128"></a><h3><a id="Manager.CanPowerOff"></a>CanPowerOff ()</h3><a id="idm140533362401136" class="indexterm"></a><pre class="programlisting">CanPowerOff (out 's' can_poweroff)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports shutdown and whether the calling user is eligible to shutdown the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned shutdown is not available because of hardware support.</p><p>If "yes" is returned shutdown is supported and the user may hibernate without further authentication.</p><p>If "no" is returned shutdown is available but the user is not allowed to shutdown.</p><p>If "challenge" is returned shutdown is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_poweroff</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362393904"></a><h3><a id="Manager.Suspend"></a>Suspend ()</h3><a id="idm140533362392912" class="indexterm"></a><pre class="programlisting">Suspend (in 'b' policykit_interactivity)</pre><p>This method initiates a request to suspend the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm140533362388064"></a><h3><a id="Manager.CanSuspend"></a>CanSuspend ()</h3><a id="idm140533362387072" class="indexterm"></a><pre class="programlisting">CanSuspend (out 's' can_suspend)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports suspending and whether the calling user is eligible to hibernate the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned suspending is not available because of hardware support.</p><p>If "yes" is returned suspending is supported and the user may suspend without further authentication.</p><p>If "no" is returned suspending is available but the user is not allowed to suspend.</p><p>If "challenge" is returned suspending is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_suspend</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362379840"></a><h3><a id="Manager.Hibernate"></a>Hibernate ()</h3><a id="idm140533362378848" class="indexterm"></a><pre class="programlisting">Hibernate (in 'b' policykit_interactivity)</pre><p>This method initiates a request to hibernate the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm140533362374000"></a><h3><a id="Manager.CanHibernate"></a>CanHibernate ()</h3><a id="idm140533362373008" class="indexterm"></a><pre class="programlisting">CanHibernate (out 's' can_hibernate)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports hibernation and whether the calling user is eligible to hibernate the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned hibernation is not available because of hardware support.</p><p>If "yes" is returned hibernation is supported and the user may hibernate without further authentication.</p><p>If "no" is returned hibernation is available but the user is not allowed to hibernate.</p><p>If "challenge" is returned hibernation is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_hibernate</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362365760"></a><h3><a id="Manager.HybridSleep"></a>HybridSleep ()</h3><a id="idm140533362364768" class="indexterm"></a><pre class="programlisting">HybridSleep (in 'b' policykit_interactivity)</pre><p>This method initiates a request to hybrid sleep (suspend + hibernate) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
- CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm140533362359888"></a><h3><a id="Manager.CanHybridSleep"></a>CanHybridSleep ()</h3><a id="idm140533362358896" class="indexterm"></a><pre class="programlisting">CanHybridSleep (out 's' can_hybridsleep)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports hybrid sleep (suspend + hibernate) and whether the calling user is eligible to hybrid sleep the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned hybrid sleeping is not available because of hardware support.</p><p>If "yes" is returned hybrid sleeping is supported and the user may hybrid sleep without further authentication.</p><p>If "no" is returned hybrid sleeping is available but the user is not allowed to hybrid sleep.</p><p>If "challenge" is returned hybrid sleeping is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_hybridsleep</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362351600"></a><h3><a id="Manager.Inhibit"></a>Inhibit ()</h3><a id="idm140533362350608" class="indexterm"></a><pre class="programlisting">Inhibit (in 's' what,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm139836752850768"></a><h3><a id="Manager.CanReboot"></a>CanReboot ()</h3><a id="idm139836752849776" class="indexterm"></a><pre class="programlisting">CanReboot (out 's' can_reboot)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports rebooting and whether the calling user is eligible to reboot the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned rebooting is not available because of hardware support.</p><p>If "yes" is returned rebooting is supported and the user may suspend without further authentication.</p><p>If "no" is returned rebooting is available but the user is not allowed to reboot.</p><p>If "challenge" is returned rebooting is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_reboot</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752842544"></a><h3><a id="Manager.PowerOff"></a>PowerOff ()</h3><a id="idm139836752841552" class="indexterm"></a><pre class="programlisting">PowerOff (in 'b' policykit_interactivity)</pre><p>This method initiates a request to shutdown the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm139836752836784"></a><h3><a id="Manager.CanPowerOff"></a>CanPowerOff ()</h3><a id="idm139836752835792" class="indexterm"></a><pre class="programlisting">CanPowerOff (out 's' can_poweroff)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports shutdown and whether the calling user is eligible to shutdown the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned shutdown is not available because of hardware support.</p><p>If "yes" is returned shutdown is supported and the user may hibernate without further authentication.</p><p>If "no" is returned shutdown is available but the user is not allowed to shutdown.</p><p>If "challenge" is returned shutdown is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_poweroff</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752828560"></a><h3><a id="Manager.Suspend"></a>Suspend ()</h3><a id="idm139836752827568" class="indexterm"></a><pre class="programlisting">Suspend (in 'b' policykit_interactivity)</pre><p>This method initiates a request to suspend the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm139836752822800"></a><h3><a id="Manager.CanSuspend"></a>CanSuspend ()</h3><a id="idm139836752821808" class="indexterm"></a><pre class="programlisting">CanSuspend (out 's' can_suspend)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports suspending and whether the calling user is eligible to hibernate the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned suspending is not available because of hardware support.</p><p>If "yes" is returned suspending is supported and the user may suspend without further authentication.</p><p>If "no" is returned suspending is available but the user is not allowed to suspend.</p><p>If "challenge" is returned suspending is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_suspend</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752814576"></a><h3><a id="Manager.Hibernate"></a>Hibernate ()</h3><a id="idm139836752813584" class="indexterm"></a><pre class="programlisting">Hibernate (in 'b' policykit_interactivity)</pre><p>This method initiates a request to hibernate the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm139836752808736"></a><h3><a id="Manager.CanHibernate"></a>CanHibernate ()</h3><a id="idm139836752807744" class="indexterm"></a><pre class="programlisting">CanHibernate (out 's' can_hibernate)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports hibernation and whether the calling user is eligible to hibernate the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned hibernation is not available because of hardware support.</p><p>If "yes" is returned hibernation is supported and the user may hibernate without further authentication.</p><p>If "no" is returned hibernation is available but the user is not allowed to hibernate.</p><p>If "challenge" is returned hibernation is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_hibernate</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752800496"></a><h3><a id="Manager.HybridSleep"></a>HybridSleep ()</h3><a id="idm139836752799504" class="indexterm"></a><pre class="programlisting">HybridSleep (in 'b' policykit_interactivity)</pre><p>This method initiates a request to hybrid sleep (suspend + hibernate) the computer system.</p><p>May fail with: CK_MANAGER_ERROR_INHIBITED, CK_MANAGER_ERROR_INSUFFICIENT_PERMISSION, CK_MANAGER_ERROR_AUTHORIZATION_REQUIRED,
+ CK_MANAGER_ERROR_GENERAL, CK_MANAGER_ERROR_BUSY</p><p>Since 0.9.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>policykit_interactivity</code></em>:</span></dt><dd>policykit_interactivity determines whether PolicyKit (if enabled) should interactively ask the user for authentication credentials if it needs to.</dd></dl></div></div><div class="refsect2"><a id="idm139836752794624"></a><h3><a id="Manager.CanHybridSleep"></a>CanHybridSleep ()</h3><a id="idm139836752793632" class="indexterm"></a><pre class="programlisting">CanHybridSleep (out 's' can_hybridsleep)</pre><p>This method emulates the logind implementation.</p><p>Returns whether the system supports hybrid sleep (suspend + hibernate) and whether the calling user is eligible to hybrid sleep the system.</p><p>Returns one of "na", "yes", "no" or "challenge".</p><p>If "na" is returned hybrid sleeping is not available because of hardware support.</p><p>If "yes" is returned hybrid sleeping is supported and the user may hybrid sleep without further authentication.</p><p>If "no" is returned hybrid sleeping is available but the user is not allowed to hybrid sleep.</p><p>If "challenge" is returned hybrid sleeping is available, but only after authorization.</p><p>May fail with: CK_MANAGER_ERROR_FAILED if polkit is used and fails checking authorization.</p><p>Since 0.9.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_hybridsleep</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752786336"></a><h3><a id="Manager.Inhibit"></a>Inhibit ()</h3><a id="idm139836752785344" class="indexterm"></a><pre class="programlisting">Inhibit (in 's' what,
in 's' who,
in 's' why,
in 's' mode,
@@ -271,7 +271,7 @@ The Session will remain open until the Session Leader disconnects from the D-Bus
dbus_message_unref (reply);
dbus_error_free (&amp;error);
return fd;
- </pre></div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>what</code></em>:</span></dt><dd>What is a colon-separated list of lock types. The list of lock types are: shutdown, sleep, idle, handle-power-key, handle-suspend-key, handle-hibernate-key. Example: "shutdown:idle"</dd><dt><span class="term"><em class="parameter"><code>who</code></em>:</span></dt><dd>Who is a human-readable, descriptive string of who is taking the lock. Example: "Xfburn"</dd><dt><span class="term"><em class="parameter"><code>why</code></em>:</span></dt><dd>Why is a human-readable, descriptive string of why the program is taking the lock. Example: "Burning a DVD, interrupting now will ruin the DVD."</dd><dt><span class="term"><em class="parameter"><code>mode</code></em>:</span></dt><dd>Mode is either "block" or "delay" which determines if the inhibit lock is mandatory or should just delay the operation to a certain maximum time.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Returns a file descriptor that encapsulates the lock, or -1 on failure. As soon as the file descriptor is closed (and all its duplicates) the lock is automatically released. If the client dies while the lock is taken it is automatically closed and the lock is released.</dd></dl></div></div><div class="refsect2"><a id="idm140533362334256"></a><h3><a id="Manager.ListInhibitors"></a>ListInhibitors ()</h3><a id="idm140533362333264" class="indexterm"></a><pre class="programlisting">ListInhibitors (out 'a(ssssuu)' inhibitors)</pre><p>This method emulates the logind implementation.</p><p>Returns the current list of inhibitors, an array of strings representing the what, who, why, mode, and two unsigned int32 representing the user ID and process ID.</p><p>May fail with: CK_MANAGER_ERROR_GENERAL or CK_MANAGER_ERROR_NOTHING_INHIBITED.</p><p>Since 0.9.5</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>inhibitors</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm140533362328320"></a><h3><a id="Manager.OpenSession"></a>OpenSession ()</h3><a id="idm140533362327328" class="indexterm"></a><pre class="programlisting">OpenSession (out 's' cookie)</pre><p>This method requests that a new <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a>
+ </pre></div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>what</code></em>:</span></dt><dd>What is a colon-separated list of lock types. The list of lock types are: shutdown, sleep, idle, handle-power-key, handle-suspend-key, handle-hibernate-key. Example: "shutdown:idle"</dd><dt><span class="term"><em class="parameter"><code>who</code></em>:</span></dt><dd>Who is a human-readable, descriptive string of who is taking the lock. Example: "Xfburn"</dd><dt><span class="term"><em class="parameter"><code>why</code></em>:</span></dt><dd>Why is a human-readable, descriptive string of why the program is taking the lock. Example: "Burning a DVD, interrupting now will ruin the DVD."</dd><dt><span class="term"><em class="parameter"><code>mode</code></em>:</span></dt><dd>Mode is either "block" or "delay" which determines if the inhibit lock is mandatory or should just delay the operation to a certain maximum time.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Returns a file descriptor that encapsulates the lock, or -1 on failure. As soon as the file descriptor is closed (and all its duplicates) the lock is automatically released. If the client dies while the lock is taken it is automatically closed and the lock is released.</dd></dl></div></div><div class="refsect2"><a id="idm139836752768992"></a><h3><a id="Manager.ListInhibitors"></a>ListInhibitors ()</h3><a id="idm139836752768000" class="indexterm"></a><pre class="programlisting">ListInhibitors (out 'a(ssssuu)' inhibitors)</pre><p>This method emulates the logind implementation.</p><p>Returns the current list of inhibitors, an array of strings representing the what, who, why, mode, and two unsigned int32 representing the user ID and process ID.</p><p>May fail with: CK_MANAGER_ERROR_GENERAL or CK_MANAGER_ERROR_NOTHING_INHIBITED.</p><p>Since 0.9.5</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>inhibitors</code></em>:</span></dt><dd></dd></dl></div></div><div class="refsect2"><a id="idm139836752763056"></a><h3><a id="Manager.OpenSession"></a>OpenSession ()</h3><a id="idm139836752762064" class="indexterm"></a><pre class="programlisting">OpenSession (out 's' cookie)</pre><p>This method requests that a new <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a>
be created for the calling process. The properties of this new Session are set automatically
from information collected about the calling process.
</p><p>This new session exists until the calling process disconnects from the system bus or
@@ -313,7 +313,7 @@ The Session will remain open until the Session Leader disconnects from the D-Bus
</pre></div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the new session</dd></dl></div><p>
See also:
-<a class="link" href="#Manager.OpenSessionWithParameters"><code class="function">OpenSessionWithParameters()</code></a></p></div><div class="refsect2"><a id="idm140533362316592"></a><h3><a id="Manager.OpenSessionWithParameters"></a>OpenSessionWithParameters ()</h3><a id="idm140533362315600" class="indexterm"></a><pre class="programlisting">OpenSessionWithParameters (in 'a(sv)' parameters,
+<a class="link" href="#Manager.OpenSessionWithParameters"><code class="function">OpenSessionWithParameters()</code></a></p></div><div class="refsect2"><a id="idm139836752751328"></a><h3><a id="Manager.OpenSessionWithParameters"></a>OpenSessionWithParameters ()</h3><a id="idm139836752750336" class="indexterm"></a><pre class="programlisting">OpenSessionWithParameters (in 'a(sv)' parameters,
out 's' cookie)</pre><p>This method requests that a new <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a>
be created for the calling process. The properties of this new Session are from the
parameters provided.
@@ -325,69 +325,69 @@ See also:
as members of this session.
</p><p>See the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> properties for a list of valid parameters.</p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>parameters</code></em>:</span></dt><dd>An array of sets of property names and values</dd><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the new session</dd></dl></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Permissions</h3><p class="permission">This method is restricted to privileged users by D-Bus policy.</p></div><p>
See also:
-<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">org.freedesktop.ConsoleKit.Session</a></p></div><div class="refsect2"><a id="idm140533362304416"></a><h3><a id="Manager.CloseSession"></a>CloseSession ()</h3><a id="idm140533362303424" class="indexterm"></a><pre class="programlisting">CloseSession (in 's' cookie,
+<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">org.freedesktop.ConsoleKit.Session</a></p></div><div class="refsect2"><a id="idm139836752739152"></a><h3><a id="Manager.CloseSession"></a>CloseSession ()</h3><a id="idm139836752738160" class="indexterm"></a><pre class="programlisting">CloseSession (in 's' cookie,
out 'b' result)</pre><p>This method is used to close the session identified by the supplied cookie.
</p><p>The session can only be closed by the same process that opened the session.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the session</dd><dt><span class="term"><em class="parameter"><code>result</code></em>:</span></dt><dd>Whether the session was successfully closed</dd></dl></div></div><div class="refsect2"><a id="idm140533362297856"></a><h3><a id="Manager.ActivateSession"></a>ActivateSession ()</h3><a id="idm140533362296864" class="indexterm"></a><pre class="programlisting">ActivateSession (in 's' session_id)</pre><p>This method is used to activate the specified session.</p><p>May fail with: CK_MANAGER_ERROR_INVALID_INPUT, CK_MANAGER_ERROR_NO_SEATS, CK_MANAGER_ERROR_GENERAL</p><p>Since 1.2.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to activate</dd></dl></div></div><div class="refsect2"><a id="idm140533362292336"></a><h3><a id="Manager.ActivateSessionOnSeat"></a>ActivateSessionOnSeat ()</h3><a id="idm140533362291344" class="indexterm"></a><pre class="programlisting">ActivateSessionOnSeat (in 's' session_id,
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the session</dd><dt><span class="term"><em class="parameter"><code>result</code></em>:</span></dt><dd>Whether the session was successfully closed</dd></dl></div></div><div class="refsect2"><a id="idm139836752732592"></a><h3><a id="Manager.ActivateSession"></a>ActivateSession ()</h3><a id="idm139836752731600" class="indexterm"></a><pre class="programlisting">ActivateSession (in 's' session_id)</pre><p>This method is used to activate the specified session.</p><p>May fail with: CK_MANAGER_ERROR_INVALID_INPUT, CK_MANAGER_ERROR_NO_SEATS, CK_MANAGER_ERROR_GENERAL</p><p>Since 1.2.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to activate</dd></dl></div></div><div class="refsect2"><a id="idm139836752727072"></a><h3><a id="Manager.ActivateSessionOnSeat"></a>ActivateSessionOnSeat ()</h3><a id="idm139836752726080" class="indexterm"></a><pre class="programlisting">ActivateSessionOnSeat (in 's' session_id,
in 's' seat_id)</pre><p>This method is used to activate the specified session as
- as long as it's on the seat_id.</p><p>May fail with: CK_MANAGER_ERROR_INVALID_INPUT, CK_MANAGER_ERROR_GENERAL</p><p>Since 1.2.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to activate</dd><dt><span class="term"><em class="parameter"><code>seat_id</code></em>:</span></dt><dd>The seat to activate the session on</dd></dl></div></div><div class="refsect2"><a id="idm140533362285376"></a><h3><a id="Manager.LockSession"></a>LockSession ()</h3><a id="idm140533362284384" class="indexterm"></a><pre class="programlisting">LockSession (in 's' session_id)</pre><p>This will cause a <a class="link" href="#Session::Lock"><code class="literal">Lock</code></a>
+ as long as it's on the seat_id.</p><p>May fail with: CK_MANAGER_ERROR_INVALID_INPUT, CK_MANAGER_ERROR_GENERAL</p><p>Since 1.2.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to activate</dd><dt><span class="term"><em class="parameter"><code>seat_id</code></em>:</span></dt><dd>The seat to activate the session on</dd></dl></div></div><div class="refsect2"><a id="idm139836752720112"></a><h3><a id="Manager.LockSession"></a>LockSession ()</h3><a id="idm139836752719120" class="indexterm"></a><pre class="programlisting">LockSession (in 's' session_id)</pre><p>This will cause a <a class="link" href="#Session::Lock"><code class="literal">Lock</code></a>
signal to be emitted for this session.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to lock</dd></dl></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Permissions</h3><p class="permission">This method is restricted to privileged users by D-Bus policy.</p></div><p>
See also:
-<a class="link" href="#Session::Lock"><code class="literal">Lock signal</code></a></p></div><div class="refsect2"><a id="idm140533362277584"></a><h3><a id="Manager.UnlockSession"></a>UnlockSession ()</h3><a id="idm140533362276592" class="indexterm"></a><pre class="programlisting">UnlockSession (in 's' session_id)</pre><p>This will cause an <a class="link" href="#Session::Unlock"><code class="literal">Unlock</code></a>
+<a class="link" href="#Session::Lock"><code class="literal">Lock signal</code></a></p></div><div class="refsect2"><a id="idm139836752712320"></a><h3><a id="Manager.UnlockSession"></a>UnlockSession ()</h3><a id="idm139836752711328" class="indexterm"></a><pre class="programlisting">UnlockSession (in 's' session_id)</pre><p>This will cause an <a class="link" href="#Session::Unlock"><code class="literal">Unlock</code></a>
signal to be emitted for this session.
</p><p>This can be used by login managers to unlock a session before it is
re-activated during fast-user-switching.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The session to unlock</dd></dl></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Permissions</h3><p class="permission">This method is restricted to privileged users by D-Bus policy.</p></div><p>
See also:
-<a class="link" href="#Session::Unlock"><code class="literal">Unlock signal</code></a></p></div><div class="refsect2"><a id="idm140533362269264"></a><h3><a id="Manager.GetSeats"></a>GetSeats ()</h3><a id="idm140533362268272" class="indexterm"></a><pre class="programlisting">GetSeats (out 'ao' seats)</pre><p>This gets a list of all the <a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">Seats</a>
+<a class="link" href="#Session::Unlock"><code class="literal">Unlock signal</code></a></p></div><div class="refsect2"><a id="idm139836752704000"></a><h3><a id="Manager.GetSeats"></a>GetSeats ()</h3><a id="idm139836752703008" class="indexterm"></a><pre class="programlisting">GetSeats (out 'ao' seats)</pre><p>This gets a list of all the <a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">Seats</a>
that are currently present on the system.</p><p>Each Seat ID is an D-Bus object path for the object that implements the
<a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">Seat</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>seats</code></em>:</span></dt><dd>an array of Seat IDs</dd></dl></div><p>
See also:
-<a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">org.freedesktop.ConsoleKit.Seat</a></p></div><div class="refsect2"><a id="idm140533362262144"></a><h3><a id="Manager.GetSessions"></a>GetSessions ()</h3><a id="idm140533362261152" class="indexterm"></a><pre class="programlisting">GetSessions (out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
+<a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">org.freedesktop.ConsoleKit.Seat</a></p></div><div class="refsect2"><a id="idm139836752696880"></a><h3><a id="Manager.GetSessions"></a>GetSessions ()</h3><a id="idm139836752695888" class="indexterm"></a><pre class="programlisting">GetSessions (out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
that are currently present on the system.</p><p>Each Session ID is an D-Bus object path for the object that implements the
<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div><p>
See also:
-<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">org.freedesktop.ConsoleKit.Session</a></p></div><div class="refsect2"><a id="idm140533362255024"></a><h3><a id="Manager.GetSessionForCookie"></a>GetSessionForCookie ()</h3><a id="idm140533362254032" class="indexterm"></a><pre class="programlisting">GetSessionForCookie (in 's' cookie,
+<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">org.freedesktop.ConsoleKit.Session</a></p></div><div class="refsect2"><a id="idm139836752689760"></a><h3><a id="Manager.GetSessionForCookie"></a>GetSessionForCookie ()</h3><a id="idm139836752688768" class="indexterm"></a><pre class="programlisting">GetSessionForCookie (in 's' cookie,
out 'o' ssid)</pre><p>Returns the session ID that is associated with the specified cookie.
- </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the session</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm140533362248560"></a><h3><a id="Manager.GetSessionForUnixProcess"></a>GetSessionForUnixProcess ()</h3><a id="idm140533362247568" class="indexterm"></a><pre class="programlisting">GetSessionForUnixProcess (in 'u' pid,
+ </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cookie</code></em>:</span></dt><dd>The secret cookie that is used to identify the session</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm139836752683296"></a><h3><a id="Manager.GetSessionForUnixProcess"></a>GetSessionForUnixProcess ()</h3><a id="idm139836752682304" class="indexterm"></a><pre class="programlisting">GetSessionForUnixProcess (in 'u' pid,
out 'o' ssid)</pre><p>Attempts to determine the session ID for the specified
POSIX process ID (pid).
- </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pid</code></em>:</span></dt><dd>The POSIX process ID</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm140533362242064"></a><h3><a id="Manager.GetSessionByPID"></a>GetSessionByPID ()</h3><a id="idm140533362241072" class="indexterm"></a><pre class="programlisting">GetSessionByPID (in 'u' pid,
+ </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pid</code></em>:</span></dt><dd>The POSIX process ID</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm139836752676800"></a><h3><a id="Manager.GetSessionByPID"></a>GetSessionByPID ()</h3><a id="idm139836752675808" class="indexterm"></a><pre class="programlisting">GetSessionByPID (in 'u' pid,
out 'o' ssid)</pre><p>Attempts to determine the session ID for the specified
POSIX process ID (pid).
- </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pid</code></em>:</span></dt><dd>The POSIX process ID</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm140533362235200"></a><h3><a id="Manager.GetCurrentSession"></a>GetCurrentSession ()</h3><a id="idm140533362234208" class="indexterm"></a><pre class="programlisting">GetCurrentSession (out 'o' ssid)</pre><p>Attempts to determine the session ID that the caller belongs to.
+ </p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pid</code></em>:</span></dt><dd>The POSIX process ID</dd><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm139836752669936"></a><h3><a id="Manager.GetCurrentSession"></a>GetCurrentSession ()</h3><a id="idm139836752668944" class="indexterm"></a><pre class="programlisting">GetCurrentSession (out 'o' ssid)</pre><p>Attempts to determine the session ID that the caller belongs to.
</p><p>May fail with: CK_MANAGER_ERROR_GENERAL</p><p>See this example of using dbus-send:
</p><div class="informalexample"><pre class="programlisting">
dbus-send --system --dest=org.freedesktop.ConsoleKit \
--type=method_call --print-reply --reply-timeout=2000 \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.GetCurrentSession
- </pre></div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm140533362228832"></a><h3><a id="Manager.GetSessionsForUnixUser"></a>GetSessionsForUnixUser ()</h3><a id="idm140533362227840" class="indexterm"></a><pre class="programlisting">GetSessionsForUnixUser (in 'u' uid,
+ </pre></div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>The object identifier for the current session</dd></dl></div></div><div class="refsect2"><a id="idm139836752663568"></a><h3><a id="Manager.GetSessionsForUnixUser"></a>GetSessionsForUnixUser ()</h3><a id="idm139836752662576" class="indexterm"></a><pre class="programlisting">GetSessionsForUnixUser (in 'u' uid,
out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
that are currently open for the specified user.</p><p>Each Session ID is an D-Bus object path for the object that implements the
- <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>POSIX User identification</dd><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div></div><div class="refsect2"><a id="idm140533362221024"></a><h3><a id="Manager.GetSessionsForUser"></a>GetSessionsForUser ()</h3><a id="idm140533362220032" class="indexterm"></a><pre class="programlisting">GetSessionsForUser (in 'u' uid,
+ <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>POSIX User identification</dd><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div></div><div class="refsect2"><a id="idm139836752655760"></a><h3><a id="Manager.GetSessionsForUser"></a>GetSessionsForUser ()</h3><a id="idm139836752654768" class="indexterm"></a><pre class="programlisting">GetSessionsForUser (in 'u' uid,
out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
that are currently open for the specified user.</p><p>Each Session ID is an D-Bus object path for the object that implements the
<a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>User identification</dd><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">GetSessionsForUser</code> is deprecated since version 0.1.3 and should not be used in newly-written code. Use
<a class="link" href="#Manager.GetSessionsForUnixUser"><code class="function">GetSessionsForUnixUser</code></a>
-instead.</p></div></div><div class="refsect2"><a id="idm140533362210864"></a><h3><a id="Manager.GetSystemIdleHint"></a>GetSystemIdleHint ()</h3><a id="idm140533362209872" class="indexterm"></a><pre class="programlisting">GetSystemIdleHint (out 'b' idle_hint)</pre><p>Returns TRUE if the <a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a>
+instead.</p></div></div><div class="refsect2"><a id="idm139836752645600"></a><h3><a id="Manager.GetSystemIdleHint"></a>GetSystemIdleHint ()</h3><a id="idm139836752644608" class="indexterm"></a><pre class="programlisting">GetSystemIdleHint (out 'b' idle_hint)</pre><p>Returns TRUE if the <a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a>
property of every open session is TRUE or if there are no open sessions.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>idle_hint</code></em>:</span></dt><dd>The value of the system-idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm140533362205120"></a><h3><a id="Manager.GetSystemIdleSinceHint"></a>GetSystemIdleSinceHint ()</h3><a id="idm140533362204128" class="indexterm"></a><pre class="programlisting">GetSystemIdleSinceHint (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>idle_hint</code></em>:</span></dt><dd>The value of the system-idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm139836752639856"></a><h3><a id="Manager.GetSystemIdleSinceHint"></a>GetSystemIdleSinceHint ()</h3><a id="idm139836752638864" class="indexterm"></a><pre class="programlisting">GetSystemIdleSinceHint (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
the time of the last change of the system-idle-hint.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div></div><div class="refsect1"><a id="idm140533362200208"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm140533362199088"></a><h3><a id="Manager::SeatAdded"></a>The SeatAdded signal</h3><a id="idm140533362198096" class="indexterm"></a><pre class="programlisting">SeatAdded ('o' sid)</pre><p>Emitted when a Seat has been added to the system.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>The Seat ID for the added seat</dd></dl></div></div><div class="refsect2"><a id="idm140533362194368"></a><h3><a id="Manager::SeatRemoved"></a>The SeatRemoved signal</h3><a id="idm140533362193376" class="indexterm"></a><pre class="programlisting">SeatRemoved ('o' sid)</pre><p>Emitted when a Seat has been removed from the system.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>The Seat ID for the removed seat</dd></dl></div></div><div class="refsect2"><a id="idm140533362189648"></a><h3><a id="Manager::SessionNew"></a>The SessionNew signal</h3><a id="idm140533362188656" class="indexterm"></a><pre class="programlisting">SessionNew ('s' session_id,
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div></div><div class="refsect1"><a id="idm139836752634944"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm139836752633824"></a><h3><a id="Manager::SeatAdded"></a>The SeatAdded signal</h3><a id="idm139836752632832" class="indexterm"></a><pre class="programlisting">SeatAdded ('o' sid)</pre><p>Emitted when a Seat has been added to the system.
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>The Seat ID for the added seat</dd></dl></div></div><div class="refsect2"><a id="idm139836752629104"></a><h3><a id="Manager::SeatRemoved"></a>The SeatRemoved signal</h3><a id="idm139836752628112" class="indexterm"></a><pre class="programlisting">SeatRemoved ('o' sid)</pre><p>Emitted when a Seat has been removed from the system.
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>The Seat ID for the removed seat</dd></dl></div></div><div class="refsect2"><a id="idm139836752624384"></a><h3><a id="Manager::SessionNew"></a>The SessionNew signal</h3><a id="idm139836752623392" class="indexterm"></a><pre class="programlisting">SessionNew ('s' session_id,
'o' object_path)</pre><p>Emitted when a session has been added to the system.
- </p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The Session ID for the added session</dd><dt><span class="term"><em class="parameter"><code>object_path</code></em>:</span></dt><dd>The object path for the added session</dd></dl></div></div><div class="refsect2"><a id="idm140533362183200"></a><h3><a id="Manager::SessionRemoved"></a>The SessionRemoved signal</h3><a id="idm140533362182208" class="indexterm"></a><pre class="programlisting">SessionRemoved ('s' session_id,
+ </p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The Session ID for the added session</dd><dt><span class="term"><em class="parameter"><code>object_path</code></em>:</span></dt><dd>The object path for the added session</dd></dl></div></div><div class="refsect2"><a id="idm139836752617936"></a><h3><a id="Manager::SessionRemoved"></a>The SessionRemoved signal</h3><a id="idm139836752616944" class="indexterm"></a><pre class="programlisting">SessionRemoved ('s' session_id,
'o' object_path)</pre><p>Emitted when a session has been removed from the system.
- </p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The Session ID for the removed session</dd><dt><span class="term"><em class="parameter"><code>object_path</code></em>:</span></dt><dd>The object path for the removed session</dd></dl></div></div><div class="refsect2"><a id="idm140533362176752"></a><h3><a id="Manager::SystemIdleHintChanged"></a>The SystemIdleHintChanged signal</h3><a id="idm140533362175760" class="indexterm"></a><pre class="programlisting">SystemIdleHintChanged ('b' hint)</pre><p>Emitted when the value of the system-idle-hint has changed.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hint</code></em>:</span></dt><dd>The value of the system-idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm140533362172032"></a><h3><a id="Manager::PrepareForShutdown"></a>The PrepareForShutdown signal</h3><a id="idm140533362171040" class="indexterm"></a><pre class="programlisting">PrepareForShutdown ('b' active)</pre><p>Emitted when the system is halting (active = TRUE). If
+ </p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>session_id</code></em>:</span></dt><dd>The Session ID for the removed session</dd><dt><span class="term"><em class="parameter"><code>object_path</code></em>:</span></dt><dd>The object path for the removed session</dd></dl></div></div><div class="refsect2"><a id="idm139836752611488"></a><h3><a id="Manager::SystemIdleHintChanged"></a>The SystemIdleHintChanged signal</h3><a id="idm139836752610496" class="indexterm"></a><pre class="programlisting">SystemIdleHintChanged ('b' hint)</pre><p>Emitted when the value of the system-idle-hint has changed.
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hint</code></em>:</span></dt><dd>The value of the system-idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm139836752606768"></a><h3><a id="Manager::PrepareForShutdown"></a>The PrepareForShutdown signal</h3><a id="idm139836752605776" class="indexterm"></a><pre class="programlisting">PrepareForShutdown ('b' active)</pre><p>Emitted when the system is halting (active = TRUE). If
successful there will not be a FALSE signal emitted since
the system will poweroff or reboot. It will emit a FALSE
signal if the shutdown operation failed.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>active</code></em>:</span></dt><dd>TRUE when the system is starting to halt.</dd></dl></div></div><div class="refsect2"><a id="idm140533362167088"></a><h3><a id="Manager::PrepareForSleep"></a>The PrepareForSleep signal</h3><a id="idm140533362166096" class="indexterm"></a><pre class="programlisting">PrepareForSleep ('b' active)</pre><p>Emitted when the system is starting the sleep process.
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>active</code></em>:</span></dt><dd>TRUE when the system is starting to halt.</dd></dl></div></div><div class="refsect2"><a id="idm139836752601824"></a><h3><a id="Manager::PrepareForSleep"></a>The PrepareForSleep signal</h3><a id="idm139836752600832" class="indexterm"></a><pre class="programlisting">PrepareForSleep ('b' active)</pre><p>Emitted when the system is starting the sleep process.
It will emit with an active = FALSE when resuming from sleep
or if the sleep operation failed.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>active</code></em>:</span></dt><dd>TRUE when starting to sleep.</dd></dl></div></div></div></div><div class="refentry"><div class="refentry.separator"><hr /></div><a id="Seat"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>org.freedesktop.ConsoleKit.Seat — Seat interface</p></div><div class="refsynopsisdiv"><h2>Methods</h2><pre class="synopsis"><a class="link" href="#Seat.GetId">GetId</a> (out 'o' sid)
@@ -398,37 +398,39 @@ instead.</p></div></div><div class="refsect2"><a id="idm140533362210864"></a><h3
<a class="link" href="#Seat.CanActivateSessions">CanActivateSessions</a> (out 'b' can_activate)
<a class="link" href="#Seat.ActivateSession">ActivateSession</a> (in 'o' ssid)
<a class="link" href="#Seat.SwitchTo">SwitchTo</a> (in 'u' vtnr)
-</pre></div><div class="refsect1"><a id="idm140533361834896"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Seat::ActiveSessionChanged">ActiveSessionChanged</a> ('o' ssid)
+</pre></div><div class="refsect1"><a id="idm139836752269504"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Seat::ActiveSessionChanged">ActiveSessionChanged</a> ('o' ssid)
<a class="link" href="#Seat::SessionAdded">SessionAdded</a> ('o' ssid)
<a class="link" href="#Seat::SessionRemoved">SessionRemoved</a> ('o' ssid)
<a class="link" href="#Seat::DeviceAdded">DeviceAdded</a> ('(ss)' device)
<a class="link" href="#Seat::DeviceRemoved">DeviceRemoved</a> ('(ss)' device)
-</pre></div><div class="refsect1"><a id="idm140533361830032"></a><h2>Implemented Interfaces</h2><p>
+</pre></div><div class="refsect1"><a id="idm139836752264640"></a><h2>Implemented Interfaces</h2><p>
Objects implementing org.freedesktop.ConsoleKit.Seat also implements
org.freedesktop.DBus.Introspectable,
org.freedesktop.DBus.Properties
- </p></div><div class="refsect1"><a id="idm140533361828224"></a><h2>Properties</h2><pre class="synopsis"><a class="link" href="#Seat:name">'name'</a> read 's'
-</pre></div><div class="refsect1"><a id="idm140533361825856"></a><h2>Description</h2><p>A seat is a collection of sessions and a set of hardware (usually at
+ </p></div><div class="refsect1"><a id="idm139836752262832"></a><h2>Properties</h2><pre class="synopsis"><a class="link" href="#Seat:name">'name'</a> read 's'
+</pre></div><div class="refsect1"><a id="idm139836752260464"></a><h2>Description</h2><p>A seat is a collection of sessions and a set of hardware (usually at
least a keyboard and mouse). Only one session may be active on a
-seat at a time.</p></div><div class="refsect1"><a id="idm140533361824192"></a><h2>Details</h2><div class="refsect2"><a id="idm140533361823072"></a><h3><a id="Seat.GetId"></a>GetId ()</h3><a id="idm140533361822080" class="indexterm"></a><pre class="programlisting">GetId (out 'o' sid)</pre><p>Returns the ID for Seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>Seat ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361818432"></a><h3><a id="Seat.GetName"></a>GetName ()</h3><a id="idm140533361817440" class="indexterm"></a><pre class="programlisting">GetName (out 's' name)</pre><p>Returns the name for Seat, such as Seat0.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>name</code></em>:</span></dt><dd>Seat Name</dd></dl></div></div><div class="refsect2"><a id="idm140533361813408"></a><h3><a id="Seat.GetSessions"></a>GetSessions ()</h3><a id="idm140533361812416" class="indexterm"></a><pre class="programlisting">GetSessions (out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
+seat at a time.</p></div><div class="refsect1"><a id="idm139836752258800"></a><h2>Details</h2><div class="refsect2"><a id="idm139836752257680"></a><h3><a id="Seat.GetId"></a>GetId ()</h3><a id="idm139836752256688" class="indexterm"></a><pre class="programlisting">GetId (out 'o' sid)</pre><p>Returns the ID for Seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>Seat ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752253040"></a><h3><a id="Seat.GetName"></a>GetName ()</h3><a id="idm139836752252048" class="indexterm"></a><pre class="programlisting">GetName (out 's' name)</pre><p>Returns the name for Seat, such as Seat0.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>name</code></em>:</span></dt><dd>Seat Name</dd></dl></div></div><div class="refsect2"><a id="idm139836752248016"></a><h3><a id="Seat.GetSessions"></a>GetSessions ()</h3><a id="idm139836752247024" class="indexterm"></a><pre class="programlisting">GetSessions (out 'ao' sessions)</pre><p>This gets a list of all the <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Sessions</a>
that are currently attached to this seat.</p><p>Each Session ID is an D-Bus object path for the object that implements the
- <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div></div><div class="refsect2"><a id="idm140533361807040"></a><h3><a id="Seat.GetDevices"></a>GetDevices ()</h3><a id="idm140533361806048" class="indexterm"></a><pre class="programlisting">GetDevices (out 'a(ss)' devices)</pre><p>This gets a list of all the devices
+ <a class="link" href="#Session" title="org.freedesktop.ConsoleKit.Session">Session</a> interface.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sessions</code></em>:</span></dt><dd>an array of Session IDs</dd></dl></div></div><div class="refsect2"><a id="idm139836752241744"></a><h3><a id="Seat.GetDevices"></a>GetDevices ()</h3><a id="idm139836752240752" class="indexterm"></a><pre class="programlisting">GetDevices (out 'a(ss)' devices)</pre><p>This gets a list of all the devices
that are currently associated with this seat.</p><p>Each device is an D-Bus structure that represents
the device type and the device id.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>devices</code></em>:</span></dt><dd>an array of devices</dd></dl></div></div><div class="refsect2"><a id="idm140533361801776"></a><h3><a id="Seat.GetActiveSession"></a>GetActiveSession ()</h3><a id="idm140533361800784" class="indexterm"></a><pre class="programlisting">GetActiveSession (out 'o' ssid)</pre><p>Gets the Session ID that is currently active on this Seat.</p><p>Fails with CK_SEAT_ERROR_NO_ACTIVE_SESSION if there is no active session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361796656"></a><h3><a id="Seat.CanActivateSessions"></a>CanActivateSessions ()</h3><a id="idm140533361795664" class="indexterm"></a><pre class="programlisting">CanActivateSessions (out 'b' can_activate)</pre><p>Used to determine whether the seat supports session activation.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_activate</code></em>:</span></dt><dd>TRUE if seat supports session activation</dd></dl></div></div><div class="refsect2"><a id="idm140533361792064"></a><h3><a id="Seat.ActivateSession"></a>ActivateSession ()</h3><a id="idm140533361791072" class="indexterm"></a><pre class="programlisting">ActivateSession (in 'o' ssid)</pre><p>Attempt to activate the specified session. In most
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>devices</code></em>:</span></dt><dd>an array of devices</dd></dl></div></div><div class="refsect2"><a id="idm139836752236480"></a><h3><a id="Seat.GetActiveSession"></a>GetActiveSession ()</h3><a id="idm139836752235488" class="indexterm"></a><pre class="programlisting">GetActiveSession (out 'o' ssid)</pre><p>Gets the Session ID that is currently active on this Seat.</p><p>Fails with CK_SEAT_ERROR_NO_ACTIVE_SESSION if there is no active session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752231360"></a><h3><a id="Seat.CanActivateSessions"></a>CanActivateSessions ()</h3><a id="idm139836752230368" class="indexterm"></a><pre class="programlisting">CanActivateSessions (out 'b' can_activate)</pre><p>Used to determine whether the seat supports session activation.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>can_activate</code></em>:</span></dt><dd>TRUE if seat supports session activation</dd></dl></div></div><div class="refsect2"><a id="idm139836752226768"></a><h3><a id="Seat.ActivateSession"></a>ActivateSession ()</h3><a id="idm139836752225776" class="indexterm"></a><pre class="programlisting">ActivateSession (in 'o' ssid)</pre><p>Attempt to activate the specified session. In most
cases, if successful, this will cause the session to
become visible and take control of the hardware that is
associated with this seat.</p><p>May fail with: CK_SEAT_ERROR_FAILED, CK_SEAT_ERROR_ALREADY_ACTIVE, CK_SEAT_ERROR_NOT_SUPPORTED</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div><p>
See also:
-<a class="link" href="#Session.Activate"><code class="function">Activate()</code></a></p></div><div class="refsect2"><a id="idm140533361785568"></a><h3><a id="Seat.SwitchTo"></a>SwitchTo ()</h3><a id="idm140533361784576" class="indexterm"></a><pre class="programlisting">SwitchTo (in 'u' vtnr)</pre><p>Attempt to activate the specified VT. In most
+<a class="link" href="#Session.Activate"><code class="function">Activate()</code></a></p></div><div class="refsect2"><a id="idm139836752220272"></a><h3><a id="Seat.SwitchTo"></a>SwitchTo ()</h3><a id="idm139836752219280" class="indexterm"></a><pre class="programlisting">SwitchTo (in 'u' vtnr)</pre><p>Attempt to activate the specified VT. In most
cases, if successful, this will cause the session to
become visible and take control of the hardware that is
associated with this seat.</p><p>May fail with: CK_SEAT_ERROR_FAILED, CK_SEAT_ERROR_ALREADY_ACTIVE, CK_SEAT_ERROR_NOT_SUPPORTED, CK_SEAT_ERROR_GENERAL</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>vtnr</code></em>:</span></dt><dd>Virtual Terminal to switch to.</dd></dl></div><p>
See also:
-<a class="link" href="#Session.Activate"><code class="function">Activate()</code></a></p></div></div><div class="refsect1"><a id="idm140533361778560"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm140533361777440"></a><h3><a id="Seat::ActiveSessionChanged"></a>The ActiveSessionChanged signal</h3><a id="idm140533361776448" class="indexterm"></a><pre class="programlisting">ActiveSessionChanged ('o' ssid)</pre><p>Emitted when the active session has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361772800"></a><h3><a id="Seat::SessionAdded"></a>The SessionAdded signal</h3><a id="idm140533361771808" class="indexterm"></a><pre class="programlisting">SessionAdded ('o' ssid)</pre><p>Emitted when a session has been added to the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361768160"></a><h3><a id="Seat::SessionRemoved"></a>The SessionRemoved signal</h3><a id="idm140533361767168" class="indexterm"></a><pre class="programlisting">SessionRemoved ('o' ssid)</pre><p>Emitted when a session has been removed from the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361763520"></a><h3><a id="Seat::DeviceAdded"></a>The DeviceAdded signal</h3><a id="idm140533361762528" class="indexterm"></a><pre class="programlisting">DeviceAdded ('(ss)' device)</pre><p>Emitted when a device has been associated with the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>device</code></em>:</span></dt><dd>Device structure</dd></dl></div></div><div class="refsect2"><a id="idm140533361758800"></a><h3><a id="Seat::DeviceRemoved"></a>The DeviceRemoved signal</h3><a id="idm140533361757808" class="indexterm"></a><pre class="programlisting">DeviceRemoved ('(ss)' device)</pre><p>Emitted when a device has been dissociated from the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>device</code></em>:</span></dt><dd>Device structure</dd></dl></div></div></div><div class="refsect1"><a id="idm140533361753952"></a><h2>Property Details</h2><div class="refsect2"><a id="idm140533361752832"></a><h3><a id="Seat:name"></a>The "name" property</h3><a id="idm140533361751840" class="indexterm"></a><pre class="programlisting">'name' read 's'
+<a class="link" href="#Session.Activate"><code class="function">Activate()</code></a></p></div></div><div class="refsect1"><a id="idm139836752213264"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm139836752212144"></a><h3><a id="Seat::ActiveSessionChanged"></a>The ActiveSessionChanged signal</h3><a id="idm139836752211152" class="indexterm"></a><pre class="programlisting">ActiveSessionChanged ('o' ssid)</pre><p>Emitted when the active session has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752207504"></a><h3><a id="Seat::SessionAdded"></a>The SessionAdded signal</h3><a id="idm139836752206512" class="indexterm"></a><pre class="programlisting">SessionAdded ('o' ssid)</pre><p>Emitted when a session has been added to the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752202864"></a><h3><a id="Seat::SessionRemoved"></a>The SessionRemoved signal</h3><a id="idm139836752201872" class="indexterm"></a><pre class="programlisting">SessionRemoved ('o' ssid)</pre><p>Emitted when a session has been removed from the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752198224"></a><h3><a id="Seat::DeviceAdded"></a>The DeviceAdded signal</h3><a id="idm139836752197232" class="indexterm"></a><pre class="programlisting">DeviceAdded ('(ss)' device)</pre><p>Emitted when a device has been associated with the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>device</code></em>:</span></dt><dd>Device structure</dd></dl></div></div><div class="refsect2"><a id="idm139836752193504"></a><h3><a id="Seat::DeviceRemoved"></a>The DeviceRemoved signal</h3><a id="idm139836752192512" class="indexterm"></a><pre class="programlisting">DeviceRemoved ('(ss)' device)</pre><p>Emitted when a device has been dissociated from the seat.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>device</code></em>:</span></dt><dd>Device structure</dd></dl></div></div></div><div class="refsect1"><a id="idm139836752188656"></a><h2>Property Details</h2><div class="refsect2"><a id="idm139836752187536"></a><h3><a id="Seat:name"></a>The "name" property</h3><a id="idm139836752186544" class="indexterm"></a><pre class="programlisting">'name' read 's'
</pre><p>The Seat's name, such as Seat0</p><p>Since 1.1.1</p></div></div></div><div class="refentry"><div class="refentry.separator"><hr /></div><a id="Session"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>org.freedesktop.ConsoleKit.Session — Session interface</p></div><div class="refsynopsisdiv"><h2>Methods</h2><pre class="synopsis"><a class="link" href="#Session.GetId">GetId</a> (out 'o' ssid)
<a class="link" href="#Session.GetSeatId">GetSeatId</a> (out 'o' sid)
<a class="link" href="#Session.GetSessionType">GetSessionType</a> (out 's' type)
+<a class="link" href="#Session.GetSessionClass">GetSessionClass</a> (out 's' type)
+<a class="link" href="#Session.GetSessionState">GetSessionState</a> (out 's' type)
<a class="link" href="#Session.GetUser">GetUser</a> (out 'u' uid)
<a class="link" href="#Session.GetUnixUser">GetUnixUser</a> (out 'u' uid)
<a class="link" href="#Session.GetXDGRuntimeDir">GetXDGRuntimeDir</a> (out 's' xdg_runtime_dir)
@@ -437,6 +439,7 @@ See also:
<a class="link" href="#Session.GetDisplayDevice">GetDisplayDevice</a> (out 's' display_device)
<a class="link" href="#Session.GetRemoteHostName">GetRemoteHostName</a> (out 's' remote_host_name)
<a class="link" href="#Session.GetLoginSessionId">GetLoginSessionId</a> (out 's' login_session_id)
+<a class="link" href="#Session.GetVTNr">GetVTNr</a> (out 'u' VTNr)
<a class="link" href="#Session.IsActive">IsActive</a> (out 'b' active)
<a class="link" href="#Session.IsLocal">IsLocal</a> (out 'b' local)
<a class="link" href="#Session.GetCreationTime">GetCreationTime</a> (out 's' iso8601_datetime)
@@ -457,7 +460,7 @@ See also:
in 'u' minor)
<a class="link" href="#Session.PauseDeviceComplete">PauseDeviceComplete</a> (in 'u' major,
in 'u' minor)
-</pre></div><div class="refsect1"><a id="idm140533361627216"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Session::PauseDevice">PauseDevice</a> ('u' major,
+</pre></div><div class="refsect1"><a id="idm139836752060080"></a><h2>Signals</h2><pre class="synopsis"><a class="link" href="#Session::PauseDevice">PauseDevice</a> ('u' major,
'u' minor,
's' type)
<a class="link" href="#Session::ResumeDevice">ResumeDevice</a> ('u' major,
@@ -467,14 +470,16 @@ See also:
<a class="link" href="#Session::IdleHintChanged">IdleHintChanged</a> ('b' hint)
<a class="link" href="#Session::Lock">Lock</a> ()
<a class="link" href="#Session::Unlock">Unlock</a> ()
-</pre></div><div class="refsect1"><a id="idm140533361621728"></a><h2>Implemented Interfaces</h2><p>
+</pre></div><div class="refsect1"><a id="idm139836752054592"></a><h2>Implemented Interfaces</h2><p>
Objects implementing org.freedesktop.ConsoleKit.Session also implements
org.freedesktop.DBus.Introspectable,
org.freedesktop.DBus.Properties
- </p></div><div class="refsect1"><a id="idm140533361619920"></a><h2>Properties</h2><pre class="synopsis"><a class="link" href="#Session:unix-user">'unix-user'</a> read 'u'
+ </p></div><div class="refsect1"><a id="idm139836752052784"></a><h2>Properties</h2><pre class="synopsis"><a class="link" href="#Session:unix-user">'unix-user'</a> read 'u'
<a class="link" href="#Session:user">'user'</a> read 'u'
<a class="link" href="#Session:Seat">'Seat'</a> read '(so)'
-<a class="link" href="#Session:session-type">'session-type'</a> readwrite 's'
+<a class="link" href="#Session:session-type">'session-type'</a> read 's'
+<a class="link" href="#Session:session-class">'session-class'</a> read 's'
+<a class="link" href="#Session:session-state">'session-state'</a> read 's'
<a class="link" href="#Session:remote-host-name">'remote-host-name'</a> read 's'
<a class="link" href="#Session:display-device">'display-device'</a> read 's'
<a class="link" href="#Session:x11-display">'x11-display'</a> read 's'
@@ -484,94 +489,98 @@ See also:
<a class="link" href="#Session:is-local">'is-local'</a> read 'b'
<a class="link" href="#Session:idle-hint">'idle-hint'</a> readwrite 'b'
<a class="link" href="#Session:LockedHint">'LockedHint'</a> read 'b'
-</pre></div><div class="refsect1"><a id="idm140533361610064"></a><h2>Description</h2><p>Session objects represent and store information
+</pre></div><div class="refsect1"><a id="idm139836752041680"></a><h2>Description</h2><p>Session objects represent and store information
related to a user session.
</p><p>The properties associated with the Session
specifically refer to the properties of the "session leader".
- </p></div><div class="refsect1"><a id="idm140533361607920"></a><h2>Details</h2><div class="refsect2"><a id="idm140533361606800"></a><h3><a id="Session.GetId"></a>GetId ()</h3><a id="idm140533361605808" class="indexterm"></a><pre class="programlisting">GetId (out 'o' ssid)</pre><p>Returns the ID for Session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361602288"></a><h3><a id="Session.GetSeatId"></a>GetSeatId ()</h3><a id="idm140533361601296" class="indexterm"></a><pre class="programlisting">GetSeatId (out 'o' sid)</pre><p>Returns the ID for the Seat the Session is
+ </p></div><div class="refsect1"><a id="idm139836752039536"></a><h2>Details</h2><div class="refsect2"><a id="idm139836752038416"></a><h3><a id="Session.GetId"></a>GetId ()</h3><a id="idm139836752037424" class="indexterm"></a><pre class="programlisting">GetId (out 'o' ssid)</pre><p>Returns the ID for Session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ssid</code></em>:</span></dt><dd>Session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836752033904"></a><h3><a id="Session.GetSeatId"></a>GetSeatId ()</h3><a id="idm139836752032912" class="indexterm"></a><pre class="programlisting">GetSeatId (out 'o' sid)</pre><p>Returns the ID for the Seat the Session is
attached to.</p><p>May fail with CK_SESSION_ERROR_FAILED if the session isn't attached to a seat</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sid</code></em>:</span></dt><dd>Seat ID</dd></dl></div><p>
See also:
-<a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">org.freedesktop.ConsoleKit.Seat</a></p></div><div class="refsect2"><a id="idm140533361596464"></a><h3><a id="Session.GetSessionType"></a>GetSessionType ()</h3><a id="idm140533361595472" class="indexterm"></a><pre class="programlisting">GetSessionType (out 's' type)</pre><p>Returns the type of the session.</p><p>Warning: we haven't yet defined the allowed values for this property.
- It is probably best to avoid this until we do.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Session type</dd></dl></div><p>
+<a class="link" href="#Seat" title="org.freedesktop.ConsoleKit.Seat">org.freedesktop.ConsoleKit.Seat</a></p></div><div class="refsect2"><a id="idm139836752028080"></a><h3><a id="Session.GetSessionType"></a>GetSessionType ()</h3><a id="idm139836752027088" class="indexterm"></a><pre class="programlisting">GetSessionType (out 's' type)</pre><p>Returns the display type of the provided session. The following type may be returned:</p><p>"x11" - An X11/Xorg based session</p><p>"wayland" - A Wayland based session</p><p>"tty" - A text console based session</p><p>"mir" - A session using the Mir display server</p><p>"unspecified" - Unknown session type, the default.</p><p>Note: Additional types may be added in the future.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Session type</dd></dl></div><p>
See also:
-<a class="link" href="#Session:session-type"><code class="literal">session-type</code></a></p></div><div class="refsect2"><a id="idm140533361590160"></a><h3><a id="Session.GetUser"></a>GetUser ()</h3><a id="idm140533361589168" class="indexterm"></a><pre class="programlisting">GetUser (out 'u' uid)</pre><p>Returns the user that the session belongs to.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>User ID</dd></dl></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">GetUser</code> is deprecated since version 0.1.3 and should not be used in newly-written code. Use
+<a class="link" href="#Session:session-type"><code class="literal">session-type</code></a></p></div><div class="refsect2"><a id="idm139836752019920"></a><h3><a id="Session.GetSessionClass"></a>GetSessionClass ()</h3><a id="idm139836752018928" class="indexterm"></a><pre class="programlisting">GetSessionClass (out 's' type)</pre><p>Returns the display type of the provided session. The following classes may be returned:</p><p>"user" - A normal user session, the default</p><p>"greeter" - Display Manager pseudo session</p><p>"lock-screen" - Screensaver based session</p><p>"background" - A long running background process that requires its own session</p><p>Note: Additional classes may be added in the future.</p><p>Since 1.1.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Session class</dd></dl></div><p>
+See also:
+<a class="link" href="#Session:session-class"><code class="literal">session-class</code></a></p></div><div class="refsect2"><a id="idm139836752011504"></a><h3><a id="Session.GetSessionState"></a>GetSessionState ()</h3><a id="idm139836752010320" class="indexterm"></a><pre class="programlisting">GetSessionState (out 's' type)</pre><p>Returns the current state of the session. The following states may be returned:</p><p>"online" - Session is logged in but not active</p><p>"active" - Session is logged in and active</p><p>"closing" - Session is in the process of shutting down</p><p>Note: Additional classes may be added in the future.</p><p>Since 1.1.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Session state</dd></dl></div><p>
+See also:
+<a class="link" href="#Session:session-state"><code class="literal">session-state</code></a></p></div><div class="refsect2"><a id="idm139836752002688"></a><h3><a id="Session.GetUser"></a>GetUser ()</h3><a id="idm139836752001504" class="indexterm"></a><pre class="programlisting">GetUser (out 'u' uid)</pre><p>Returns the user that the session belongs to.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>User ID</dd></dl></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">GetUser</code> is deprecated since version 0.1.3 and should not be used in newly-written code. Use
<a class="link" href="#Session.GetUnixUser"><code class="function">GetUnixUser</code></a>
instead.</p></div><p>
See also:
-<a class="link" href="#Session:user"><code class="literal">user</code></a></p></div><div class="refsect2"><a id="idm140533361582176"></a><h3><a id="Session.GetUnixUser"></a>GetUnixUser ()</h3><a id="idm140533361581184" class="indexterm"></a><pre class="programlisting">GetUnixUser (out 'u' uid)</pre><p>Returns the POSIX user ID that the session belongs to.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>POSIX User ID</dd></dl></div><p>
+<a class="link" href="#Session:user"><code class="literal">user</code></a></p></div><div class="refsect2"><a id="idm139836751993616"></a><h3><a id="Session.GetUnixUser"></a>GetUnixUser ()</h3><a id="idm139836751992368" class="indexterm"></a><pre class="programlisting">GetUnixUser (out 'u' uid)</pre><p>Returns the POSIX user ID that the session belongs to.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>uid</code></em>:</span></dt><dd>POSIX User ID</dd></dl></div><p>
See also:
-<a class="link" href="#Session:unix-user"><code class="literal">unix-user</code></a></p></div><div class="refsect2"><a id="idm140533361576544"></a><h3><a id="Session.GetXDGRuntimeDir"></a>GetXDGRuntimeDir ()</h3><a id="idm140533361575552" class="indexterm"></a><pre class="programlisting">GetXDGRuntimeDir (out 's' xdg_runtime_dir)</pre><p>Returns the XDG_RUNTIME_DIR location of the session.
+<a class="link" href="#Session:unix-user"><code class="literal">unix-user</code></a></p></div><div class="refsect2"><a id="idm139836751987152"></a><h3><a id="Session.GetXDGRuntimeDir"></a>GetXDGRuntimeDir ()</h3><a id="idm139836751985888" class="indexterm"></a><pre class="programlisting">GetXDGRuntimeDir (out 's' xdg_runtime_dir)</pre><p>Returns the XDG_RUNTIME_DIR location of the session.
The XDG_RUNTIME_DIR is the same for all sessions of the same user and will be automatically
- removed once the last session of the user is closed.</p><p>May fail with: CK_SESSION_ERROR_FAILED if it failed to create a runtime dir for the user (such as root).</p><p>Since 1.1.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>xdg_runtime_dir</code></em>:</span></dt><dd>XDG_RUNTIME_DIR</dd></dl></div></div><div class="refsect2"><a id="idm140533361570912"></a><h3><a id="Session.GetX11Display"></a>GetX11Display ()</h3><a id="idm140533361569920" class="indexterm"></a><pre class="programlisting">GetX11Display (out 's' display)</pre><p>Returns the value of the X11 DISPLAY for this session
+ removed once the last session of the user is closed.</p><p>May fail with: CK_SESSION_ERROR_FAILED if it failed to create a runtime dir for the user (such as root).</p><p>Since 1.1.0</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>xdg_runtime_dir</code></em>:</span></dt><dd>XDG_RUNTIME_DIR</dd></dl></div></div><div class="refsect2"><a id="idm139836751980896"></a><h3><a id="Session.GetX11Display"></a>GetX11Display ()</h3><a id="idm139836751979712" class="indexterm"></a><pre class="programlisting">GetX11Display (out 's' display)</pre><p>Returns the value of the X11 DISPLAY for this session
if one is present.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>display</code></em>:</span></dt><dd>The value of the X11 display</dd></dl></div><p>
See also:
-<a class="link" href="#Session:x11-display"><code class="literal">x11-display</code></a></p></div><div class="refsect2"><a id="idm140533361565184"></a><h3><a id="Session.GetX11DisplayDevice"></a>GetX11DisplayDevice ()</h3><a id="idm140533361564192" class="indexterm"></a><pre class="programlisting">GetX11DisplayDevice (out 's' x11_display_device)</pre><p>Returns the value of the display device (aka TTY) that the
+<a class="link" href="#Session:x11-display"><code class="literal">x11-display</code></a></p></div><div class="refsect2"><a id="idm139836751974464"></a><h3><a id="Session.GetX11DisplayDevice"></a>GetX11DisplayDevice ()</h3><a id="idm139836751973200" class="indexterm"></a><pre class="programlisting">GetX11DisplayDevice (out 's' x11_display_device)</pre><p>Returns the value of the display device (aka TTY) that the
X11 display for the session is connected to. If there is no x11-display set then this value
is undefined.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>x11_display_device</code></em>:</span></dt><dd>The value of the X11 display device</dd></dl></div><p>
See also:
-<a class="link" href="#Session:x11-display-device"><code class="literal">x11-display-device</code></a></p></div><div class="refsect2"><a id="idm140533361559360"></a><h3><a id="Session.GetDisplayDevice"></a>GetDisplayDevice ()</h3><a id="idm140533361558336" class="indexterm"></a><pre class="programlisting">GetDisplayDevice (out 's' display_device)</pre><p>Returns the value of the display device (aka TTY) that the
+<a class="link" href="#Session:x11-display-device"><code class="literal">x11-display-device</code></a></p></div><div class="refsect2"><a id="idm139836751967760"></a><h3><a id="Session.GetDisplayDevice"></a>GetDisplayDevice ()</h3><a id="idm139836751966544" class="indexterm"></a><pre class="programlisting">GetDisplayDevice (out 's' display_device)</pre><p>Returns the value of the display device (aka TTY) that the
session is connected to.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>display_device</code></em>:</span></dt><dd>The value of the display device</dd></dl></div><p>
See also:
-<a class="link" href="#Session:display-device"><code class="literal">display-device</code></a></p></div><div class="refsect2"><a id="idm140533361553072"></a><h3><a id="Session.GetRemoteHostName"></a>GetRemoteHostName ()</h3><a id="idm140533361551808" class="indexterm"></a><pre class="programlisting">GetRemoteHostName (out 's' remote_host_name)</pre><p>Returns the value of the remote host name for the session.
+<a class="link" href="#Session:display-device"><code class="literal">display-device</code></a></p></div><div class="refsect2"><a id="idm139836751961264"></a><h3><a id="Session.GetRemoteHostName"></a>GetRemoteHostName ()</h3><a id="idm139836751960000" class="indexterm"></a><pre class="programlisting">GetRemoteHostName (out 's' remote_host_name)</pre><p>Returns the value of the remote host name for the session.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>remote_host_name</code></em>:</span></dt><dd>The remote host name</dd></dl></div><p>
See also:
-<a class="link" href="#Session:remote-host-name"><code class="literal">remote-host-name</code></a></p></div><div class="refsect2"><a id="idm140533361546496"></a><h3><a id="Session.GetLoginSessionId"></a>GetLoginSessionId ()</h3><a id="idm140533361545280" class="indexterm"></a><pre class="programlisting">GetLoginSessionId (out 's' login_session_id)</pre><p>Returns the value of the login session ID that the
+<a class="link" href="#Session:remote-host-name"><code class="literal">remote-host-name</code></a></p></div><div class="refsect2"><a id="idm139836751954688"></a><h3><a id="Session.GetLoginSessionId"></a>GetLoginSessionId ()</h3><a id="idm139836751953456" class="indexterm"></a><pre class="programlisting">GetLoginSessionId (out 's' login_session_id)</pre><p>Returns the value of the login session ID that the
underlying system uses to enforce session boundaries. If there is no login session ID
- set then this value is an empty string.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>login_session_id</code></em>:</span></dt><dd>The value of the native system login session ID</dd></dl></div></div><div class="refsect2"><a id="idm140533361541200"></a><h3><a id="Session.IsActive"></a>IsActive ()</h3><a id="idm140533361540016" class="indexterm"></a><pre class="programlisting">IsActive (out 'b' active)</pre><p>Returns whether the session is active on the Seat that
+ set then this value is an empty string.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>login_session_id</code></em>:</span></dt><dd>The value of the native system login session ID</dd></dl></div></div><div class="refsect2"><a id="idm139836751949376"></a><h3><a id="Session.GetVTNr"></a>GetVTNr ()</h3><a id="idm139836751948128" class="indexterm"></a><pre class="programlisting">GetVTNr (out 'u' VTNr)</pre><p>Returns the value of the virtual terminal that the
+ underlying session runs on. If the seat doesn't support VTs, then this will always
+ return 0.</p><p>Since 1.1.2</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>VTNr</code></em>:</span></dt><dd>The virtual terminal the session runs on, if any, 0 otherwise</dd></dl></div></div><div class="refsect2"><a id="idm139836751943680"></a><h3><a id="Session.IsActive"></a>IsActive ()</h3><a id="idm139836751942496" class="indexterm"></a><pre class="programlisting">IsActive (out 'b' active)</pre><p>Returns whether the session is active on the Seat that
it is attached to.</p><p>If the session is not attached to a seat this value is undefined.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>active</code></em>:</span></dt><dd>TRUE if the session is active, otherwise FALSE</dd></dl></div><p>
See also:
-<a class="link" href="#Session:active"><code class="literal">active</code></a></p></div><div class="refsect2"><a id="idm140533361534272"></a><h3><a id="Session.IsLocal"></a>IsLocal ()</h3><a id="idm140533361533088" class="indexterm"></a><pre class="programlisting">IsLocal (out 'b' local)</pre><p>Returns whether the session is local</p><p>FIXME: we need to come up with a concrete definition for this value.
+<a class="link" href="#Session:active"><code class="literal">active</code></a></p></div><div class="refsect2"><a id="idm139836751936752"></a><h3><a id="Session.IsLocal"></a>IsLocal ()</h3><a id="idm139836751935568" class="indexterm"></a><pre class="programlisting">IsLocal (out 'b' local)</pre><p>Returns whether the session is local</p><p>FIXME: we need to come up with a concrete definition for this value.
It was originally used as a way to identify XDMCP sessions that originate
from a remote system.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>local</code></em>:</span></dt><dd>TRUE if the session is local, otherwise FALSE</dd></dl></div><p>
See also:
-<a class="link" href="#Session:is-local"><code class="literal">is-local</code></a></p></div><div class="refsect2"><a id="idm140533361527248"></a><h3><a id="Session.GetCreationTime"></a>GetCreationTime ()</h3><a id="idm140533361526064" class="indexterm"></a><pre class="programlisting">GetCreationTime (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
+<a class="link" href="#Session:is-local"><code class="literal">is-local</code></a></p></div><div class="refsect2"><a id="idm139836751929728"></a><h3><a id="Session.GetCreationTime"></a>GetCreationTime ()</h3><a id="idm139836751928480" class="indexterm"></a><pre class="programlisting">GetCreationTime (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
the time that the session was opened.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div><div class="refsect2"><a id="idm140533361521952"></a><h3><a id="Session.Activate"></a>Activate ()</h3><a id="idm140533361520768" class="indexterm"></a><pre class="programlisting">Activate ()</pre><p>Attempt to activate the this session. In most
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div><div class="refsect2"><a id="idm139836751924368"></a><h3><a id="Session.Activate"></a>Activate ()</h3><a id="idm139836751923184" class="indexterm"></a><pre class="programlisting">Activate ()</pre><p>Attempt to activate the this session. In most
cases, if successful, this will cause the session to
become visible and become active on the seat that it
is attached to.</p><p>May fail with: CK_SESSION_ERROR_ALREADY_ACTIVE, CK_SESSION_ERROR_NOT_SUPPORTED, CK_SESSION_ERROR_GENERAL</p><p>
See also:
-<a class="link" href="#Seat.ActivateSession"><code class="function">Seat.ActivateSession()</code></a></p></div><div class="refsect2"><a id="idm140533361516512"></a><h3><a id="Session.Lock"></a>Lock ()</h3><a id="idm140533361515328" class="indexterm"></a><pre class="programlisting">Lock ()</pre><p>This will cause a <a class="link" href="#Session::Lock"><code class="literal">Lock</code></a>
+<a class="link" href="#Seat.ActivateSession"><code class="function">Seat.ActivateSession()</code></a></p></div><div class="refsect2"><a id="idm139836751918928"></a><h3><a id="Session.Lock"></a>Lock ()</h3><a id="idm139836751917680" class="indexterm"></a><pre class="programlisting">Lock ()</pre><p>This will cause a <a class="link" href="#Session::Lock"><code class="literal">Lock</code></a>
signal to be emitted for this session.
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Permissions</h3><p class="permission">This method is restricted to privileged users by D-Bus policy.</p></div><p>
See also:
-<a class="link" href="#Session::Lock"><code class="literal">Lock signal</code></a></p></div><div class="refsect2"><a id="idm140533361509456"></a><h3><a id="Session.Unlock"></a>Unlock ()</h3><a id="idm140533361508272" class="indexterm"></a><pre class="programlisting">Unlock ()</pre><p>This will cause an <a class="link" href="#Session::Unlock"><code class="literal">Unlock</code></a>
+<a class="link" href="#Session::Lock"><code class="literal">Lock signal</code></a></p></div><div class="refsect2"><a id="idm139836751911808"></a><h3><a id="Session.Unlock"></a>Unlock ()</h3><a id="idm139836751910624" class="indexterm"></a><pre class="programlisting">Unlock ()</pre><p>This will cause an <a class="link" href="#Session::Unlock"><code class="literal">Unlock</code></a>
signal to be emitted for this session.
</p><p>This can be used by login managers to unlock a session before it is
re-activated during fast-user-switching.
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Permissions</h3><p class="permission">This method is restricted to privileged users by D-Bus policy.</p></div><p>
See also:
-<a class="link" href="#Session::Unlock"><code class="literal">Unlock signal</code></a></p></div><div class="refsect2"><a id="idm140533361501872"></a><h3><a id="Session.GetIdleHint"></a>GetIdleHint ()</h3><a id="idm140533361500624" class="indexterm"></a><pre class="programlisting">GetIdleHint (out 'b' idle_hint)</pre><p>Gets the value of the <a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a>
+<a class="link" href="#Session::Unlock"><code class="literal">Unlock signal</code></a></p></div><div class="refsect2"><a id="idm139836751904224"></a><h3><a id="Session.GetIdleHint"></a>GetIdleHint ()</h3><a id="idm139836751903040" class="indexterm"></a><pre class="programlisting">GetIdleHint (out 'b' idle_hint)</pre><p>Gets the value of the <a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a>
property.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>idle_hint</code></em>:</span></dt><dd>The value of the idle-hint</dd></dl></div><p>
See also:
-<a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a></p></div><div class="refsect2"><a id="idm140533361494016"></a><h3><a id="Session.GetIdleSinceHint"></a>GetIdleSinceHint ()</h3><a id="idm140533361492688" class="indexterm"></a><pre class="programlisting">GetIdleSinceHint (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
+<a class="link" href="#Session:idle-hint"><code class="literal">idle-hint</code></a></p></div><div class="refsect2"><a id="idm139836751896432"></a><h3><a id="Session.GetIdleSinceHint"></a>GetIdleSinceHint ()</h3><a id="idm139836751895168" class="indexterm"></a><pre class="programlisting">GetIdleSinceHint (out 's' iso8601_datetime)</pre><p>Returns an ISO 8601 date-time string that corresponds to
the time of the last change of the idle-hint.
- </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div><div class="refsect2"><a id="idm140533361488608"></a><h3><a id="Session.SetIdleHint"></a>SetIdleHint ()</h3><a id="idm140533361487424" class="indexterm"></a><pre class="programlisting">SetIdleHint (in 'b' idle_hint)</pre><p>This may be used by the session to indicate that
+ </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>iso8601_datetime</code></em>:</span></dt><dd>An ISO 8601 format date-type string</dd></dl></div></div><div class="refsect2"><a id="idm139836751891088"></a><h3><a id="Session.SetIdleHint"></a>SetIdleHint ()</h3><a id="idm139836751889904" class="indexterm"></a><pre class="programlisting">SetIdleHint (in 'b' idle_hint)</pre><p>This may be used by the session to indicate that
it is idle.
</p><p>Use of this method is restricted to the user
- that owns the session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>idle_hint</code></em>:</span></dt><dd>boolean value to set the idle-hint to</dd></dl></div></div><div class="refsect2"><a id="idm140533361482880"></a><h3><a id="Session.SetLockedHint"></a>SetLockedHint ()</h3><a id="idm140533361481632" class="indexterm"></a><pre class="programlisting">SetLockedHint (in 'b' locked_hint)</pre><p> This is used by Desktop Environments to update the
+ that owns the session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>idle_hint</code></em>:</span></dt><dd>boolean value to set the idle-hint to</dd></dl></div></div><div class="refsect2"><a id="idm139836751885360"></a><h3><a id="Session.SetLockedHint"></a>SetLockedHint ()</h3><a id="idm139836751884176" class="indexterm"></a><pre class="programlisting">SetLockedHint (in 'b' locked_hint)</pre><p> This is used by Desktop Environments to update the
<a class="link" href="#Session:LockedHint"><code class="literal">LockedHint</code></a>
property. Calling <a class="link" href="#Session.Lock"><code class="function">Lock()</code></a>
or <a class="link" href="#Session.Unlock"><code class="function">Unlock()</code></a> will also
update the <a class="link" href="#Session:LockedHint"><code class="literal">LockedHint</code></a>
value.</p><p>Use of this method is restricted to the user
- that owns the session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>locked_hint</code></em>:</span></dt><dd>boolean value to set the locked-hint to</dd></dl></div></div><div class="refsect2"><a id="idm140533361472144"></a><h3><a id="Session.TakeControl"></a>TakeControl ()</h3><a id="idm140533361470896" class="indexterm"></a><pre class="programlisting">TakeControl (in 'b' force)</pre><p>Allows a single process per session to request ConsoleKit2
+ that owns the session.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>locked_hint</code></em>:</span></dt><dd>boolean value to set the locked-hint to</dd></dl></div></div><div class="refsect2"><a id="idm139836751874688"></a><h3><a id="Session.TakeControl"></a>TakeControl ()</h3><a id="idm139836751873504" class="indexterm"></a><pre class="programlisting">TakeControl (in 'b' force)</pre><p>Allows a single process per session to request ConsoleKit2
managed devices by calling <a class="link" href="#Session.TakeDevice"><code class="function">TakeDevice</code></a>.
</p><p>Use of this method is restricted to the user
that owns the session or root. The force argument will be honored for
- root only.</p><p>May fail with: CK_SESSION_ERROR_FAILED, CK_SESSION_ERROR_INSUFFICIENT_PERMISSION, CK_SESSION_ERROR_GENERAL, CK_SESSION_ERROR_NOT_SUPPORTED</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>force</code></em>:</span></dt><dd>If set to TRUE, an existing session controller is replaced.</dd></dl></div></div><div class="refsect2"><a id="idm140533361464048"></a><h3><a id="Session.ReleaseControl"></a>ReleaseControl ()</h3><a id="idm140533361462800" class="indexterm"></a><pre class="programlisting">ReleaseControl ()</pre><p>The process that previously successfully called
+ root only.</p><p>May fail with: CK_SESSION_ERROR_FAILED, CK_SESSION_ERROR_INSUFFICIENT_PERMISSION, CK_SESSION_ERROR_GENERAL, CK_SESSION_ERROR_NOT_SUPPORTED</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>force</code></em>:</span></dt><dd>If set to TRUE, an existing session controller is replaced.</dd></dl></div></div><div class="refsect2"><a id="idm139836751866656"></a><h3><a id="Session.ReleaseControl"></a>ReleaseControl ()</h3><a id="idm139836751865472" class="indexterm"></a><pre class="programlisting">ReleaseControl ()</pre><p>The process that previously successfully called
<a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>
may use this to reliqunish control. Any devices acquired with
<a class="link" href="#Session.TakeDevice"><code class="function">TakeDevice</code></a>
will be released. If the session controller closes the dbus-connection,
this will implicitly call ReleaseControl.
</p><p>Use of this method is restricted to the process that
- called <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p></div><div class="refsect2"><a id="idm140533361455808"></a><h3><a id="Session.TakeDevice"></a>TakeDevice ()</h3><a id="idm140533361454624" class="indexterm"></a><pre class="programlisting">TakeDevice (in 'u' major,
+ called <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p></div><div class="refsect2"><a id="idm139836751858480"></a><h3><a id="Session.TakeDevice"></a>TakeDevice ()</h3><a id="idm139836751857296" class="indexterm"></a><pre class="programlisting">TakeDevice (in 'u' major,
in 'u' minor,
out 'h' fd,
out 'b' inactive)</pre><p>ConsoleKit2 automatically mutes the file-descriptor if the
@@ -584,16 +593,16 @@ See also:
can only be requested once. As long as you don't release it, further
calls will fail.
</p><p>Use of this method is restricted to the session-controller,
- see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>May fail with: CK_SESSION_ERROR_FAILED, CK_SESSION_ERROR_GENERAL, CK_SESSION_ERROR_NOT_SUPPORTED</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Returns a file descriptor for the specified device.</dd><dt><span class="term"><em class="parameter"><code>inactive</code></em>:</span></dt><dd>boolean value if the deivce is currently inactive.</dd></dl></div></div><div class="refsect2"><a id="idm140533361443184"></a><h3><a id="Session.ReleaseDevice"></a>ReleaseDevice ()</h3><a id="idm140533361441936" class="indexterm"></a><pre class="programlisting">ReleaseDevice (in 'u' major,
+ see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>May fail with: CK_SESSION_ERROR_FAILED, CK_SESSION_ERROR_GENERAL, CK_SESSION_ERROR_NOT_SUPPORTED</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Returns a file descriptor for the specified device.</dd><dt><span class="term"><em class="parameter"><code>inactive</code></em>:</span></dt><dd>boolean value if the deivce is currently inactive.</dd></dl></div></div><div class="refsect2"><a id="idm139836751845856"></a><h3><a id="Session.ReleaseDevice"></a>ReleaseDevice ()</h3><a id="idm139836751844672" class="indexterm"></a><pre class="programlisting">ReleaseDevice (in 'u' major,
in 'u' minor)</pre><p>Release a previously acquired device.
</p><p>Use of this method is restricted to the session-controller,
- see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd></dl></div></div><div class="refsect2"><a id="idm140533361434400"></a><h3><a id="Session.PauseDeviceComplete"></a>PauseDeviceComplete ()</h3><a id="idm140533361433072" class="indexterm"></a><pre class="programlisting">PauseDeviceComplete (in 'u' major,
+ see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd></dl></div></div><div class="refsect2"><a id="idm139836751837136"></a><h3><a id="Session.PauseDeviceComplete"></a>PauseDeviceComplete ()</h3><a id="idm139836751835808" class="indexterm"></a><pre class="programlisting">PauseDeviceComplete (in 'u' major,
in 'u' minor)</pre><p>Allows the session controller to synchronously pause a
device in response to the
<a class="link" href="#Session::PauseDevice"><code class="literal">PauseDevice</code></a>
signal. Forced signals are automatically completed by ConsoleKit2.
</p><p>Use of this method is restricted to the session-controller,
- see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd></dl></div></div></div><div class="refsect1"><a id="idm140533361424096"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm140533361422880"></a><h3><a id="Session::PauseDevice"></a>The PauseDevice signal</h3><a id="idm140533361421696" class="indexterm"></a><pre class="programlisting">PauseDevice ('u' major,
+ see <a class="link" href="#Session.TakeControl"><code class="function">TakeControl</code></a>.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd></dl></div></div></div><div class="refsect1"><a id="idm139836751826832"></a><h2>Signal Details</h2><div class="refsect2"><a id="idm139836751825616"></a><h3><a id="Session::PauseDevice"></a>The PauseDevice signal</h3><a id="idm139836751824432" class="indexterm"></a><pre class="programlisting">PauseDevice ('u' major,
'u' minor,
's' type)</pre><p>Emitted for any device requested with
<a class="link" href="#Session.TakeDevice"><code class="function">TakeDevice</code></a>.
@@ -608,7 +617,7 @@ See also:
to VTs and ConsoleKit2 is free to not make use of it. ConsoleKit2 may
also send a force PauseDevice if you don't respond in a timely manner
(or for any other reason). A type of 'gone' means the device was unplugged from
- the system and you will no longer get any notifications about it.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Will either be: force, pause, or gone</dd></dl></div></div><div class="refsect2"><a id="idm140533361411136"></a><h3><a id="Session::ResumeDevice"></a>The ResumeDevice signal</h3><a id="idm140533361409952" class="indexterm"></a><pre class="programlisting">ResumeDevice ('u' major,
+ the system and you will no longer get any notifications about it.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>type</code></em>:</span></dt><dd>Will either be: force, pause, or gone</dd></dl></div></div><div class="refsect2"><a id="idm139836751813856"></a><h3><a id="Session::ResumeDevice"></a>The ResumeDevice signal</h3><a id="idm139836751812672" class="indexterm"></a><pre class="programlisting">ResumeDevice ('u' major,
'u' minor,
'h' fd)</pre><p>Emitted for any device requested with
<a class="link" href="#Session.TakeDevice"><code class="function">TakeDevice</code></a>.
@@ -616,43 +625,44 @@ See also:
It carries the major/minor as arguments and provides a new open
file-descriptor. You should switch to the new descriptor and close
the old one. They are not guaranteed to have the same underlying
- file descriptor.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Will either be: force, pause, or gone</dd></dl></div></div><div class="refsect2"><a id="idm140533361401152"></a><h3><a id="Session::ActiveChanged"></a>The ActiveChanged signal</h3><a id="idm140533361399920" class="indexterm"></a><pre class="programlisting">ActiveChanged ('b' is_active)</pre><p>Emitted when the active property has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>is_active</code></em>:</span></dt><dd>TRUE if the session is active, otherwise FALSE</dd></dl></div></div><div class="refsect2"><a id="idm140533361395904"></a><h3><a id="Session::IdleHintChanged"></a>The IdleHintChanged signal</h3><a id="idm140533361394672" class="indexterm"></a><pre class="programlisting">IdleHintChanged ('b' hint)</pre><p>Emitted when the idle-hint property has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hint</code></em>:</span></dt><dd>the new value of idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm140533361390640"></a><h3><a id="Session::Lock"></a>The Lock signal</h3><a id="idm140533361389456" class="indexterm"></a><pre class="programlisting">Lock ()</pre><p>Emitted in response to a call to the <a class="link" href="#Session.Lock"><code class="function">Lock()</code></a> method.</p><p>It is intended that the screensaver for the session should lock the screen in response to this signal.</p></div><div class="refsect2"><a id="idm140533361385504"></a><h3><a id="Session::Unlock"></a>The Unlock signal</h3><a id="idm140533361384320" class="indexterm"></a><pre class="programlisting">Unlock ()</pre><p>Emitted in response to a call to the <a class="link" href="#Session.Unlock"><code class="function">Unlock()</code></a> method.</p><p>It is intended that the screensaver for the session should unlock the screen in response to this signal.
- Which may involve showing the password unlock dialog, depending on the screensaver policy.</p></div></div><div class="refsect1"><a id="idm140533361380128"></a><h2>Property Details</h2><div class="refsect2"><a id="idm140533361378912"></a><h3><a id="Session:unix-user"></a>The "unix-user" property</h3><a id="idm140533361377616" class="indexterm"></a><pre class="programlisting">'unix-user' read 'u'
-</pre><p>The user assigned to the session.</p></div><div class="refsect2"><a id="idm140533361375408"></a><h3><a id="Session:user"></a>The "user" property</h3><a id="idm140533361374160" class="indexterm"></a><pre class="programlisting">'user' read 'u'
+ file descriptor.</p><p>Since 1.1.1</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>major</code></em>:</span></dt><dd>Major number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>minor</code></em>:</span></dt><dd>Minor number of the character-device.</dd><dt><span class="term"><em class="parameter"><code>fd</code></em>:</span></dt><dd>Will either be: force, pause, or gone</dd></dl></div></div><div class="refsect2"><a id="idm139836751803872"></a><h3><a id="Session::ActiveChanged"></a>The ActiveChanged signal</h3><a id="idm139836751802640" class="indexterm"></a><pre class="programlisting">ActiveChanged ('b' is_active)</pre><p>Emitted when the active property has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>is_active</code></em>:</span></dt><dd>TRUE if the session is active, otherwise FALSE</dd></dl></div></div><div class="refsect2"><a id="idm139836751798624"></a><h3><a id="Session::IdleHintChanged"></a>The IdleHintChanged signal</h3><a id="idm139836751797392" class="indexterm"></a><pre class="programlisting">IdleHintChanged ('b' hint)</pre><p>Emitted when the idle-hint property has changed.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hint</code></em>:</span></dt><dd>the new value of idle-hint</dd></dl></div></div><div class="refsect2"><a id="idm139836751793360"></a><h3><a id="Session::Lock"></a>The Lock signal</h3><a id="idm139836751792112" class="indexterm"></a><pre class="programlisting">Lock ()</pre><p>Emitted in response to a call to the <a class="link" href="#Session.Lock"><code class="function">Lock()</code></a> method.</p><p>It is intended that the screensaver for the session should lock the screen in response to this signal.</p></div><div class="refsect2"><a id="idm139836751788160"></a><h3><a id="Session::Unlock"></a>The Unlock signal</h3><a id="idm139836751786976" class="indexterm"></a><pre class="programlisting">Unlock ()</pre><p>Emitted in response to a call to the <a class="link" href="#Session.Unlock"><code class="function">Unlock()</code></a> method.</p><p>It is intended that the screensaver for the session should unlock the screen in response to this signal.</p></div></div><div class="refsect1"><a id="idm139836751782880"></a><h2>Property Details</h2><div class="refsect2"><a id="idm139836751781664"></a><h3><a id="Session:unix-user"></a>The "unix-user" property</h3><a id="idm139836751780432" class="indexterm"></a><pre class="programlisting">'unix-user' read 'u'
+</pre><p>The user assigned to the session.</p></div><div class="refsect2"><a id="idm139836751778224"></a><h3><a id="Session:user"></a>The "user" property</h3><a id="idm139836751777040" class="indexterm"></a><pre class="programlisting">'user' read 'u'
</pre><p>The user assigned to the session.</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">user</code> is deprecated since version 0.1.3 and should not be used in newly-written code. Use
<a class="link" href="#Session:unix-user"><code class="literal">unix-user</code></a>
-instead.</p></div></div><div class="refsect2"><a id="idm140533361369248"></a><h3><a id="Session:Seat"></a>The "Seat" property</h3><a id="idm140533361368064" class="indexterm"></a><pre class="programlisting">'Seat' read '(so)'
+instead.</p></div></div><div class="refsect2"><a id="idm139836751772128"></a><h3><a id="Session:Seat"></a>The "Seat" property</h3><a id="idm139836751770944" class="indexterm"></a><pre class="programlisting">'Seat' read '(so)'
</pre><p>The seat the session is assigned to. It is comprised of the
- seat id and object path of the seat.</p></div><div class="refsect2"><a id="idm140533361365744"></a><h3><a id="Session:session-type"></a>The "session-type" property</h3><a id="idm140533361364512" class="indexterm"></a><pre class="programlisting">'session-type' readwrite 's'
-</pre><p>The type of the session.</p></div><div class="refsect2"><a id="idm140533361362304"></a><h3><a id="Session:remote-host-name"></a>The "remote-host-name" property</h3><a id="idm140533361361072" class="indexterm"></a><pre class="programlisting">'remote-host-name' read 's'
+ seat id and object path of the seat.</p></div><div class="refsect2"><a id="idm139836751768624"></a><h3><a id="Session:session-type"></a>The "session-type" property</h3><a id="idm139836751767328" class="indexterm"></a><pre class="programlisting">'session-type' read 's'
+</pre><p>The type of the session.</p></div><div class="refsect2"><a id="idm139836751765120"></a><h3><a id="Session:session-class"></a>The "session-class" property</h3><a id="idm139836751763888" class="indexterm"></a><pre class="programlisting">'session-class' read 's'
+</pre><p>The class of the session.</p></div><div class="refsect2"><a id="idm139836751761680"></a><h3><a id="Session:session-state"></a>The "session-state" property</h3><a id="idm139836751760448" class="indexterm"></a><pre class="programlisting">'session-state' read 's'
+</pre><p>The state of the session.</p></div><div class="refsect2"><a id="idm139836751758240"></a><h3><a id="Session:remote-host-name"></a>The "remote-host-name" property</h3><a id="idm139836751757008" class="indexterm"></a><pre class="programlisting">'remote-host-name' read 's'
</pre><p>The remote host name for the session.
</p><p>This will be set in situations where the session is
opened and controlled from a remote system.
</p><p>For example, this value will be set when the
session is created from an SSH or XDMCP connection.
- </p></div><div class="refsect2"><a id="idm140533361357792"></a><h3><a id="Session:display-device"></a>The "display-device" property</h3><a id="idm140533361356560" class="indexterm"></a><pre class="programlisting">'display-device' read 's'
+ </p></div><div class="refsect2"><a id="idm139836751753728"></a><h3><a id="Session:display-device"></a>The "display-device" property</h3><a id="idm139836751752496" class="indexterm"></a><pre class="programlisting">'display-device' read 's'
</pre><p>The display device (aka TTY) that the
session is connected to.
- </p></div><div class="refsect2"><a id="idm140533361354304"></a><h3><a id="Session:x11-display"></a>The "x11-display" property</h3><a id="idm140533361353008" class="indexterm"></a><pre class="programlisting">'x11-display' read 's'
+ </p></div><div class="refsect2"><a id="idm139836751750240"></a><h3><a id="Session:x11-display"></a>The "x11-display" property</h3><a id="idm139836751748944" class="indexterm"></a><pre class="programlisting">'x11-display' read 's'
</pre><p>Value of the X11 DISPLAY for this session
if one is present.
- </p></div><div class="refsect2"><a id="idm140533361350752"></a><h3><a id="Session:x11-display-device"></a>The "x11-display-device" property</h3><a id="idm140533361349456" class="indexterm"></a><pre class="programlisting">'x11-display-device' read 's'
+ </p></div><div class="refsect2"><a id="idm139836751746688"></a><h3><a id="Session:x11-display-device"></a>The "x11-display-device" property</h3><a id="idm139836751745456" class="indexterm"></a><pre class="programlisting">'x11-display-device' read 's'
</pre><p>
The display device (aka TTY) that the X11 display for the
session is connected to. If there is no x11-display set then
this value is undefined.
- </p></div><div class="refsect2"><a id="idm140533361347056"></a><h3><a id="Session:VTNr"></a>The "VTNr" property</h3><a id="idm140533361345808" class="indexterm"></a><pre class="programlisting">'VTNr' read 'u'
-</pre><p>The virtual terminal the session runs on, if any, 0 otherwise.</p></div><div class="refsect2"><a id="idm140533361343552"></a><h3><a id="Session:active"></a>The "active" property</h3><a id="idm140533361342368" class="indexterm"></a><pre class="programlisting">'active' read 'b'
+ </p></div><div class="refsect2"><a id="idm139836751743056"></a><h3><a id="Session:VTNr"></a>The "VTNr" property</h3><a id="idm139836751741808" class="indexterm"></a><pre class="programlisting">'VTNr' read 'u'
+</pre><p>The virtual terminal the session runs on, if any, 0 otherwise.</p></div><div class="refsect2"><a id="idm139836751739552"></a><h3><a id="Session:active"></a>The "active" property</h3><a id="idm139836751738368" class="indexterm"></a><pre class="programlisting">'active' read 'b'
</pre><p>
Whether the session is active on the Seat that
it is attached to.</p><p>If the session is not attached to a seat this value is undefined.
- </p></div><div class="refsect2"><a id="idm140533361339600"></a><h3><a id="Session:is-local"></a>The "is-local" property</h3><a id="idm140533361338416" class="indexterm"></a><pre class="programlisting">'is-local' read 'b'
+ </p></div><div class="refsect2"><a id="idm139836751735600"></a><h3><a id="Session:is-local"></a>The "is-local" property</h3><a id="idm139836751734352" class="indexterm"></a><pre class="programlisting">'is-local' read 'b'
</pre><p>
Whether the session is local</p><p>FIXME: we need to come up with a concrete definition for this value.
It was originally used as a way to identify XDMCP sessions that originate
from a remote system.
- </p></div><div class="refsect2"><a id="idm140533361335584"></a><h3><a id="Session:idle-hint"></a>The "idle-hint" property</h3><a id="idm140533361334352" class="indexterm"></a><pre class="programlisting">'idle-hint' readwrite 'b'
+ </p></div><div class="refsect2"><a id="idm139836751731520"></a><h3><a id="Session:idle-hint"></a>The "idle-hint" property</h3><a id="idm139836751730224" class="indexterm"></a><pre class="programlisting">'idle-hint' readwrite 'b'
</pre><p>
This is a hint used to indicate that the session may be idle.
</p><p>
@@ -665,11 +675,11 @@ instead.</p></div></div><div class="refsect2"><a id="idm140533361369248"></a><h3
on the activity detected on the display-device itself.
</p><p>
This should not be considered authoritative.
- </p></div><div class="refsect2"><a id="idm140533361327968"></a><h3><a id="Session:LockedHint"></a>The "LockedHint" property</h3><a id="idm140533361326672" class="indexterm"></a><pre class="programlisting">'LockedHint' read 'b'
+ </p></div><div class="refsect2"><a id="idm139836751723840"></a><h3><a id="Session:LockedHint"></a>The "LockedHint" property</h3><a id="idm139836751722608" class="indexterm"></a><pre class="programlisting">'LockedHint' read 'b'
</pre><p>
This is a hint used by Desktop Environments to indicate that the
session may be locked.
- </p></div></div></div></div></div><div class="index"><div class="titlepage"><div><div><h1 class="title"><a id="idm140533361033264"></a>Index</h1></div></div></div><div xmlns:xlink="http://www.w3.org/1999/xlink" class="index"><div class="indexdiv"><h3>A</h3><dl><dt id="ientry-idm140533361520768">Activate</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361521952">Activate ()</a></dt></dl></dd><dt id="ientry-idm140533362296864">ActivateSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362297856">ActivateSession ()</a></dt><dt>Seat, <a class="indexterm" href="#idm140533361792064">ActivateSession ()</a></dt></dl></dd><dt id="ientry-idm140533362291344">ActivateSessionOnSeat</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362292336">ActivateSessionOnSeat ()</a></dt></dl></dd><dt id="ientry-idm140533361342368">active</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361343552">The "active" property</a></dt></dl></dd><dt id="ientry-idm140533361399920">ActiveChanged</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361401152">The ActiveChanged signal</a></dt></dl></dd><dt id="ientry-idm140533361776448">ActiveSessionChanged</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361777440">The ActiveSessionChanged signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>C</h3><dl><dt id="ientry-idm140533361795664">CanActivateSessions</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361796656">CanActivateSessions ()</a></dt></dl></dd><dt id="ientry-idm140533362373008">CanHibernate</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362374000">CanHibernate ()</a></dt></dl></dd><dt id="ientry-idm140533362358896">CanHybridSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362359888">CanHybridSleep ()</a></dt></dl></dd><dt id="ientry-idm140533362401136">CanPowerOff</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362402128">CanPowerOff ()</a></dt></dl></dd><dt id="ientry-idm140533362415200">CanReboot</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362416192">CanReboot ()</a></dt></dl></dd><dt id="ientry-idm140533362434992">CanRestart</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362435984">CanRestart ()</a></dt></dl></dd><dt id="ientry-idm140533362426208">CanStop</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362427200">CanStop ()</a></dt></dl></dd><dt id="ientry-idm140533362387072">CanSuspend</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362388064">CanSuspend ()</a></dt></dl></dd><dt id="ientry-idm140533362303424">CloseSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362304416">CloseSession ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>D</h3><dl><dt id="ientry-idm140533361762528">DeviceAdded</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361763520">The DeviceAdded signal</a></dt></dl></dd><dt id="ientry-idm140533361757808">DeviceRemoved</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361758800">The DeviceRemoved signal</a></dt></dl></dd><dt id="ientry-idm140533361356560">display-device</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361357792">The "display-device" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>G</h3><dl><dt id="ientry-idm140533361800784">GetActiveSession</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361801776">GetActiveSession ()</a></dt></dl></dd><dt id="ientry-idm140533361526064">GetCreationTime</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361527248">GetCreationTime ()</a></dt></dl></dd><dt id="ientry-idm140533362234208">GetCurrentSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362235200">GetCurrentSession ()</a></dt></dl></dd><dt id="ientry-idm140533361806048">GetDevices</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361807040">GetDevices ()</a></dt></dl></dd><dt id="ientry-idm140533361558336">GetDisplayDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361559360">GetDisplayDevice ()</a></dt></dl></dd><dt id="ientry-idm140533361822080">GetId</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361823072">GetId ()</a></dt><dt>Session, <a class="indexterm" href="#idm140533361606800">GetId ()</a></dt></dl></dd><dt id="ientry-idm140533361500624">GetIdleHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361501872">GetIdleHint ()</a></dt></dl></dd><dt id="ientry-idm140533361492688">GetIdleSinceHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361494016">GetIdleSinceHint ()</a></dt></dl></dd><dt id="ientry-idm140533361545280">GetLoginSessionId</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361546496">GetLoginSessionId ()</a></dt></dl></dd><dt id="ientry-idm140533361817440">GetName</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361818432">GetName ()</a></dt></dl></dd><dt id="ientry-idm140533361551808">GetRemoteHostName</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361553072">GetRemoteHostName ()</a></dt></dl></dd><dt id="ientry-idm140533361601296">GetSeatId</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361602288">GetSeatId ()</a></dt></dl></dd><dt id="ientry-idm140533362268272">GetSeats</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362269264">GetSeats ()</a></dt></dl></dd><dt id="ientry-idm140533362241072">GetSessionByPID</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362242064">GetSessionByPID ()</a></dt></dl></dd><dt id="ientry-idm140533362254032">GetSessionForCookie</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362255024">GetSessionForCookie ()</a></dt></dl></dd><dt id="ientry-idm140533362247568">GetSessionForUnixProcess</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362248560">GetSessionForUnixProcess ()</a></dt></dl></dd><dt id="ientry-idm140533362261152">GetSessions</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362262144">GetSessions ()</a></dt><dt>Seat, <a class="indexterm" href="#idm140533361813408">GetSessions ()</a></dt></dl></dd><dt id="ientry-idm140533362227840">GetSessionsForUnixUser</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362228832">GetSessionsForUnixUser ()</a></dt></dl></dd><dt id="ientry-idm140533362220032">GetSessionsForUser</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362221024">GetSessionsForUser ()</a></dt></dl></dd><dt id="ientry-idm140533361595472">GetSessionType</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361596464">GetSessionType ()</a></dt></dl></dd><dt id="ientry-idm140533362209872">GetSystemIdleHint</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362210864">GetSystemIdleHint ()</a></dt></dl></dd><dt id="ientry-idm140533362204128">GetSystemIdleSinceHint</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362205120">GetSystemIdleSinceHint ()</a></dt></dl></dd><dt id="ientry-idm140533361581184">GetUnixUser</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361582176">GetUnixUser ()</a></dt></dl></dd><dt id="ientry-idm140533361589168">GetUser</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361590160">GetUser ()</a></dt></dl></dd><dt id="ientry-idm140533361569920">GetX11Display</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361570912">GetX11Display ()</a></dt></dl></dd><dt id="ientry-idm140533361564192">GetX11DisplayDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361565184">GetX11DisplayDevice ()</a></dt></dl></dd><dt id="ientry-idm140533361575552">GetXDGRuntimeDir</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361576544">GetXDGRuntimeDir ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>H</h3><dl><dt id="ientry-idm140533362378848">Hibernate</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362379840">Hibernate ()</a></dt></dl></dd><dt id="ientry-idm140533362364768">HybridSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362365760">HybridSleep ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>I</h3><dl><dt id="ientry-idm140533361334352">idle-hint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361335584">The "idle-hint" property</a></dt></dl></dd><dt id="ientry-idm140533361394672">IdleHintChanged</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361395904">The IdleHintChanged signal</a></dt></dl></dd><dt id="ientry-idm140533362350608">Inhibit</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362351600">Inhibit ()</a></dt></dl></dd><dt id="ientry-idm140533361338416">is-local</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361339600">The "is-local" property</a></dt></dl></dd><dt id="ientry-idm140533361540016">IsActive</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361541200">IsActive ()</a></dt></dl></dd><dt id="ientry-idm140533361533088">IsLocal</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361534272">IsLocal ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>L</h3><dl><dt id="ientry-idm140533362333264">ListInhibitors</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362334256">ListInhibitors ()</a></dt></dl></dd><dt id="ientry-idm140533361515328">Lock</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361516512">Lock ()</a>, <a class="indexterm" href="#idm140533361390640">The Lock signal</a></dt></dl></dd><dt id="ientry-idm140533361326672">LockedHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361327968">The "LockedHint" property</a></dt></dl></dd><dt id="ientry-idm140533362284384">LockSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362285376">LockSession ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>N</h3><dl><dt id="ientry-idm140533361751840">name</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361752832">The "name" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>O</h3><dl><dt id="ientry-idm140533362327328">OpenSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362328320">OpenSession ()</a></dt></dl></dd><dt id="ientry-idm140533362315600">OpenSessionWithParameters</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362316592">OpenSessionWithParameters ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>P</h3><dl><dt id="ientry-idm140533361421696">PauseDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361422880">The PauseDevice signal</a></dt></dl></dd><dt id="ientry-idm140533361433072">PauseDeviceComplete</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361434400">PauseDeviceComplete ()</a></dt></dl></dd><dt id="ientry-idm140533362406976">PowerOff</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362407968">PowerOff ()</a></dt></dl></dd><dt id="ientry-idm140533362171040">PrepareForShutdown</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362172032">The PrepareForShutdown signal</a></dt></dl></dd><dt id="ientry-idm140533362166096">PrepareForSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362167088">The PrepareForSleep signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>R</h3><dl><dt id="ientry-idm140533362421104">Reboot</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362422096">Reboot ()</a></dt></dl></dd><dt id="ientry-idm140533361462800">ReleaseControl</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361464048">ReleaseControl ()</a></dt></dl></dd><dt id="ientry-idm140533361441936">ReleaseDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361443184">ReleaseDevice ()</a></dt></dl></dd><dt id="ientry-idm140533361361072">remote-host-name</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361362304">The "remote-host-name" property</a></dt></dl></dd><dt id="ientry-idm140533362438672">Restart</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362439664">Restart ()</a></dt></dl></dd><dt id="ientry-idm140533361409952">ResumeDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361411136">The ResumeDevice signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>S</h3><dl><dt id="ientry-idm140533361368064">Seat</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361369248">The "Seat" property</a></dt></dl></dd><dt id="ientry-idm140533362198096">SeatAdded</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362199088">The SeatAdded signal</a></dt></dl></dd><dt id="ientry-idm140533362193376">SeatRemoved</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362194368">The SeatRemoved signal</a></dt></dl></dd><dt id="ientry-idm140533361364512">session-type</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361365744">The "session-type" property</a></dt></dl></dd><dt id="ientry-idm140533361771808">SessionAdded</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361772800">The SessionAdded signal</a></dt></dl></dd><dt id="ientry-idm140533362188656">SessionNew</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362189648">The SessionNew signal</a></dt></dl></dd><dt id="ientry-idm140533362182208">SessionRemoved</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362183200">The SessionRemoved signal</a></dt><dt>Seat, <a class="indexterm" href="#idm140533361768160">The SessionRemoved signal</a></dt></dl></dd><dt id="ientry-idm140533361487424">SetIdleHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361488608">SetIdleHint ()</a></dt></dl></dd><dt id="ientry-idm140533361481632">SetLockedHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361482880">SetLockedHint ()</a></dt></dl></dd><dt id="ientry-idm140533362429888">Stop</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362430880">Stop ()</a></dt></dl></dd><dt id="ientry-idm140533362392912">Suspend</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362393904">Suspend ()</a></dt></dl></dd><dt id="ientry-idm140533361784576">SwitchTo</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm140533361785568">SwitchTo ()</a></dt></dl></dd><dt id="ientry-idm140533362175760">SystemIdleHintChanged</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362176752">The SystemIdleHintChanged signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>T</h3><dl><dt id="ientry-idm140533361470896">TakeControl</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361472144">TakeControl ()</a></dt></dl></dd><dt id="ientry-idm140533361454624">TakeDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361455808">TakeDevice ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>U</h3><dl><dt id="ientry-idm140533361377616">unix-user</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361378912">The "unix-user" property</a></dt></dl></dd><dt id="ientry-idm140533361508272">Unlock</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361509456">Unlock ()</a>, <a class="indexterm" href="#idm140533361385504">The Unlock signal</a></dt></dl></dd><dt id="ientry-idm140533362276592">UnlockSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm140533362277584">UnlockSession ()</a></dt></dl></dd><dt id="ientry-idm140533361374160">user</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361375408">The "user" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>V</h3><dl><dt id="ientry-idm140533361345808">VTNr</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361347056">The "VTNr" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>X</h3><dl><dt id="ientry-idm140533361353008">x11-display</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361354304">The "x11-display" property</a></dt></dl></dd><dt id="ientry-idm140533361349456">x11-display-device</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm140533361350752">The "x11-display-device" property</a></dt></dl></dd></dl></div></div></div></div>
+ </p></div></div></div></div></div><div class="index"><div class="titlepage"><div><div><h1 class="title"><a id="idm139836751392560"></a>Index</h1></div></div></div><div xmlns:xlink="http://www.w3.org/1999/xlink" class="index"><div class="indexdiv"><h3>A</h3><dl><dt id="ientry-idm139836751923184">Activate</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751924368">Activate ()</a></dt></dl></dd><dt id="ientry-idm139836752731600">ActivateSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752732592">ActivateSession ()</a></dt><dt>Seat, <a class="indexterm" href="#idm139836752226768">ActivateSession ()</a></dt></dl></dd><dt id="ientry-idm139836752726080">ActivateSessionOnSeat</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752727072">ActivateSessionOnSeat ()</a></dt></dl></dd><dt id="ientry-idm139836751738368">active</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751739552">The "active" property</a></dt></dl></dd><dt id="ientry-idm139836751802640">ActiveChanged</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751803872">The ActiveChanged signal</a></dt></dl></dd><dt id="ientry-idm139836752211152">ActiveSessionChanged</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752212144">The ActiveSessionChanged signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>C</h3><dl><dt id="ientry-idm139836752230368">CanActivateSessions</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752231360">CanActivateSessions ()</a></dt></dl></dd><dt id="ientry-idm139836752807744">CanHibernate</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752808736">CanHibernate ()</a></dt></dl></dd><dt id="ientry-idm139836752793632">CanHybridSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752794624">CanHybridSleep ()</a></dt></dl></dd><dt id="ientry-idm139836752835792">CanPowerOff</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752836784">CanPowerOff ()</a></dt></dl></dd><dt id="ientry-idm139836752849776">CanReboot</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752850768">CanReboot ()</a></dt></dl></dd><dt id="ientry-idm139836752869568">CanRestart</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752870560">CanRestart ()</a></dt></dl></dd><dt id="ientry-idm139836752860784">CanStop</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752861776">CanStop ()</a></dt></dl></dd><dt id="ientry-idm139836752821808">CanSuspend</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752822800">CanSuspend ()</a></dt></dl></dd><dt id="ientry-idm139836752738160">CloseSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752739152">CloseSession ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>D</h3><dl><dt id="ientry-idm139836752197232">DeviceAdded</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752198224">The DeviceAdded signal</a></dt></dl></dd><dt id="ientry-idm139836752192512">DeviceRemoved</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752193504">The DeviceRemoved signal</a></dt></dl></dd><dt id="ientry-idm139836751752496">display-device</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751753728">The "display-device" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>G</h3><dl><dt id="ientry-idm139836752235488">GetActiveSession</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752236480">GetActiveSession ()</a></dt></dl></dd><dt id="ientry-idm139836751928480">GetCreationTime</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751929728">GetCreationTime ()</a></dt></dl></dd><dt id="ientry-idm139836752668944">GetCurrentSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752669936">GetCurrentSession ()</a></dt></dl></dd><dt id="ientry-idm139836752240752">GetDevices</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752241744">GetDevices ()</a></dt></dl></dd><dt id="ientry-idm139836751966544">GetDisplayDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751967760">GetDisplayDevice ()</a></dt></dl></dd><dt id="ientry-idm139836752256688">GetId</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752257680">GetId ()</a></dt><dt>Session, <a class="indexterm" href="#idm139836752038416">GetId ()</a></dt></dl></dd><dt id="ientry-idm139836751903040">GetIdleHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751904224">GetIdleHint ()</a></dt></dl></dd><dt id="ientry-idm139836751895168">GetIdleSinceHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751896432">GetIdleSinceHint ()</a></dt></dl></dd><dt id="ientry-idm139836751953456">GetLoginSessionId</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751954688">GetLoginSessionId ()</a></dt></dl></dd><dt id="ientry-idm139836752252048">GetName</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752253040">GetName ()</a></dt></dl></dd><dt id="ientry-idm139836751960000">GetRemoteHostName</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751961264">GetRemoteHostName ()</a></dt></dl></dd><dt id="ientry-idm139836752032912">GetSeatId</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836752033904">GetSeatId ()</a></dt></dl></dd><dt id="ientry-idm139836752703008">GetSeats</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752704000">GetSeats ()</a></dt></dl></dd><dt id="ientry-idm139836752675808">GetSessionByPID</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752676800">GetSessionByPID ()</a></dt></dl></dd><dt id="ientry-idm139836752018928">GetSessionClass</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836752019920">GetSessionClass ()</a></dt></dl></dd><dt id="ientry-idm139836752688768">GetSessionForCookie</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752689760">GetSessionForCookie ()</a></dt></dl></dd><dt id="ientry-idm139836752682304">GetSessionForUnixProcess</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752683296">GetSessionForUnixProcess ()</a></dt></dl></dd><dt id="ientry-idm139836752695888">GetSessions</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752696880">GetSessions ()</a></dt><dt>Seat, <a class="indexterm" href="#idm139836752248016">GetSessions ()</a></dt></dl></dd><dt id="ientry-idm139836752662576">GetSessionsForUnixUser</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752663568">GetSessionsForUnixUser ()</a></dt></dl></dd><dt id="ientry-idm139836752654768">GetSessionsForUser</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752655760">GetSessionsForUser ()</a></dt></dl></dd><dt id="ientry-idm139836752010320">GetSessionState</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836752011504">GetSessionState ()</a></dt></dl></dd><dt id="ientry-idm139836752027088">GetSessionType</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836752028080">GetSessionType ()</a></dt></dl></dd><dt id="ientry-idm139836752644608">GetSystemIdleHint</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752645600">GetSystemIdleHint ()</a></dt></dl></dd><dt id="ientry-idm139836752638864">GetSystemIdleSinceHint</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752639856">GetSystemIdleSinceHint ()</a></dt></dl></dd><dt id="ientry-idm139836751992368">GetUnixUser</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751993616">GetUnixUser ()</a></dt></dl></dd><dt id="ientry-idm139836752001504">GetUser</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836752002688">GetUser ()</a></dt></dl></dd><dt id="ientry-idm139836751948128">GetVTNr</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751949376">GetVTNr ()</a></dt></dl></dd><dt id="ientry-idm139836751979712">GetX11Display</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751980896">GetX11Display ()</a></dt></dl></dd><dt id="ientry-idm139836751973200">GetX11DisplayDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751974464">GetX11DisplayDevice ()</a></dt></dl></dd><dt id="ientry-idm139836751985888">GetXDGRuntimeDir</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751987152">GetXDGRuntimeDir ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>H</h3><dl><dt id="ientry-idm139836752813584">Hibernate</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752814576">Hibernate ()</a></dt></dl></dd><dt id="ientry-idm139836752799504">HybridSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752800496">HybridSleep ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>I</h3><dl><dt id="ientry-idm139836751730224">idle-hint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751731520">The "idle-hint" property</a></dt></dl></dd><dt id="ientry-idm139836751797392">IdleHintChanged</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751798624">The IdleHintChanged signal</a></dt></dl></dd><dt id="ientry-idm139836752785344">Inhibit</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752786336">Inhibit ()</a></dt></dl></dd><dt id="ientry-idm139836751734352">is-local</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751735600">The "is-local" property</a></dt></dl></dd><dt id="ientry-idm139836751942496">IsActive</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751943680">IsActive ()</a></dt></dl></dd><dt id="ientry-idm139836751935568">IsLocal</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751936752">IsLocal ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>L</h3><dl><dt id="ientry-idm139836752768000">ListInhibitors</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752768992">ListInhibitors ()</a></dt></dl></dd><dt id="ientry-idm139836751917680">Lock</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751918928">Lock ()</a>, <a class="indexterm" href="#idm139836751793360">The Lock signal</a></dt></dl></dd><dt id="ientry-idm139836751722608">LockedHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751723840">The "LockedHint" property</a></dt></dl></dd><dt id="ientry-idm139836752719120">LockSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752720112">LockSession ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>N</h3><dl><dt id="ientry-idm139836752186544">name</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752187536">The "name" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>O</h3><dl><dt id="ientry-idm139836752762064">OpenSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752763056">OpenSession ()</a></dt></dl></dd><dt id="ientry-idm139836752750336">OpenSessionWithParameters</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752751328">OpenSessionWithParameters ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>P</h3><dl><dt id="ientry-idm139836751824432">PauseDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751825616">The PauseDevice signal</a></dt></dl></dd><dt id="ientry-idm139836751835808">PauseDeviceComplete</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751837136">PauseDeviceComplete ()</a></dt></dl></dd><dt id="ientry-idm139836752841552">PowerOff</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752842544">PowerOff ()</a></dt></dl></dd><dt id="ientry-idm139836752605776">PrepareForShutdown</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752606768">The PrepareForShutdown signal</a></dt></dl></dd><dt id="ientry-idm139836752600832">PrepareForSleep</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752601824">The PrepareForSleep signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>R</h3><dl><dt id="ientry-idm139836752855680">Reboot</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752856672">Reboot ()</a></dt></dl></dd><dt id="ientry-idm139836751865472">ReleaseControl</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751866656">ReleaseControl ()</a></dt></dl></dd><dt id="ientry-idm139836751844672">ReleaseDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751845856">ReleaseDevice ()</a></dt></dl></dd><dt id="ientry-idm139836751757008">remote-host-name</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751758240">The "remote-host-name" property</a></dt></dl></dd><dt id="ientry-idm139836752873248">Restart</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752874240">Restart ()</a></dt></dl></dd><dt id="ientry-idm139836751812672">ResumeDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751813856">The ResumeDevice signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>S</h3><dl><dt id="ientry-idm139836751770944">Seat</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751772128">The "Seat" property</a></dt></dl></dd><dt id="ientry-idm139836752632832">SeatAdded</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752633824">The SeatAdded signal</a></dt></dl></dd><dt id="ientry-idm139836752628112">SeatRemoved</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752629104">The SeatRemoved signal</a></dt></dl></dd><dt id="ientry-idm139836751763888">session-class</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751765120">The "session-class" property</a></dt></dl></dd><dt id="ientry-idm139836751760448">session-state</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751761680">The "session-state" property</a></dt></dl></dd><dt id="ientry-idm139836751767328">session-type</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751768624">The "session-type" property</a></dt></dl></dd><dt id="ientry-idm139836752206512">SessionAdded</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752207504">The SessionAdded signal</a></dt></dl></dd><dt id="ientry-idm139836752623392">SessionNew</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752624384">The SessionNew signal</a></dt></dl></dd><dt id="ientry-idm139836752616944">SessionRemoved</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752617936">The SessionRemoved signal</a></dt><dt>Seat, <a class="indexterm" href="#idm139836752202864">The SessionRemoved signal</a></dt></dl></dd><dt id="ientry-idm139836751889904">SetIdleHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751891088">SetIdleHint ()</a></dt></dl></dd><dt id="ientry-idm139836751884176">SetLockedHint</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751885360">SetLockedHint ()</a></dt></dl></dd><dt id="ientry-idm139836752864464">Stop</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752865456">Stop ()</a></dt></dl></dd><dt id="ientry-idm139836752827568">Suspend</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752828560">Suspend ()</a></dt></dl></dd><dt id="ientry-idm139836752219280">SwitchTo</dt><dd><dl><dt>Seat, <a class="indexterm" href="#idm139836752220272">SwitchTo ()</a></dt></dl></dd><dt id="ientry-idm139836752610496">SystemIdleHintChanged</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752611488">The SystemIdleHintChanged signal</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>T</h3><dl><dt id="ientry-idm139836751873504">TakeControl</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751874688">TakeControl ()</a></dt></dl></dd><dt id="ientry-idm139836751857296">TakeDevice</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751858480">TakeDevice ()</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>U</h3><dl><dt id="ientry-idm139836751780432">unix-user</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751781664">The "unix-user" property</a></dt></dl></dd><dt id="ientry-idm139836751910624">Unlock</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751911808">Unlock ()</a>, <a class="indexterm" href="#idm139836751788160">The Unlock signal</a></dt></dl></dd><dt id="ientry-idm139836752711328">UnlockSession</dt><dd><dl><dt>Manager, <a class="indexterm" href="#idm139836752712320">UnlockSession ()</a></dt></dl></dd><dt id="ientry-idm139836751777040">user</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751778224">The "user" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>V</h3><dl><dt id="ientry-idm139836751741808">VTNr</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751743056">The "VTNr" property</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>X</h3><dl><dt id="ientry-idm139836751748944">x11-display</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751750240">The "x11-display" property</a></dt></dl></dd><dt id="ientry-idm139836751745456">x11-display-device</dt><dd><dl><dt>Session, <a class="indexterm" href="#idm139836751746688">The "x11-display-device" property</a></dt></dl></dd></dl></div></div></div></div>
<!-- FOOTER -->