From edad750e967458f55b9e761af966f325213ce9fe Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Wed, 30 Jul 2008 17:37:24 -0400 Subject: reorganize the docs a bit --- doc/.gitignore | 2 - doc/ConsoleKit.xml.in | 74 ------ doc/Makefile.am | 41 +-- doc/config.xsl | 6 - doc/dbus-introspect-docs.dtd | 32 --- doc/dbus/.gitignore | 6 + doc/dbus/ConsoleKit.xml.in | 74 ++++++ doc/dbus/Makefile.am | 46 ++++ doc/dbus/ck-design.xml | 180 +++++++++++++ doc/dbus/ck-introduction.xml | 28 ++ doc/dbus/ck-terms.xml | 67 +++++ doc/dbus/config.xsl | 6 + doc/dbus/dbus-introspect-docs.dtd | 32 +++ doc/dbus/docbook.css | 78 ++++++ doc/dbus/spec-to-docbook.xsl | 543 ++++++++++++++++++++++++++++++++++++++ doc/docbook.css | 78 ------ doc/xml/Makefile.am | 20 -- doc/xml/ck-design.xml | 180 ------------- doc/xml/ck-introduction.xml | 28 -- doc/xml/ck-terms.xml | 67 ----- doc/xml/spec-to-docbook.xsl | 543 -------------------------------------- 21 files changed, 1061 insertions(+), 1070 deletions(-) delete mode 100644 doc/ConsoleKit.xml.in delete mode 100644 doc/config.xsl delete mode 100644 doc/dbus-introspect-docs.dtd create mode 100644 doc/dbus/.gitignore create mode 100644 doc/dbus/ConsoleKit.xml.in create mode 100644 doc/dbus/Makefile.am create mode 100644 doc/dbus/ck-design.xml create mode 100644 doc/dbus/ck-introduction.xml create mode 100644 doc/dbus/ck-terms.xml create mode 100644 doc/dbus/config.xsl create mode 100644 doc/dbus/dbus-introspect-docs.dtd create mode 100644 doc/dbus/docbook.css create mode 100644 doc/dbus/spec-to-docbook.xsl delete mode 100644 doc/docbook.css delete mode 100644 doc/xml/Makefile.am delete mode 100644 doc/xml/ck-design.xml delete mode 100644 doc/xml/ck-introduction.xml delete mode 100644 doc/xml/ck-terms.xml delete mode 100644 doc/xml/spec-to-docbook.xsl (limited to 'doc') diff --git a/doc/.gitignore b/doc/.gitignore index 4337b46..35e3b27 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1,6 +1,4 @@ Makefile Makefile.in -ConsoleKit.xml -ConsoleKit.html *.o *~ diff --git a/doc/ConsoleKit.xml.in b/doc/ConsoleKit.xml.in deleted file mode 100644 index 8a86511..0000000 --- a/doc/ConsoleKit.xml.in +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - -]> - - - - ConsoleKit @VERSION@ Documentation - Version @VERSION@ - 8 March, 2007 - - - William Jon - McCann - -
- mccann@jhu.edu -
-
-
-
-
- - - Introduction - - - - - - Concepts - - &Intro; - &Terms; - &Design; - - - - Reference - - - D-Bus API Reference - - - - ConsoleKit provides a D-Bus API for programs to obtain information about the - users, sessions, and seats that are present on a system. - - - Please see the other sections of this manual for an introduction to - these concepts. - - - This API is not yet stable and is likely to change in the future. - - - - &dbus-Manager; - &dbus-Seat; - &dbus-Session; - - - - - - Index - - -
diff --git a/doc/Makefile.am b/doc/Makefile.am index 31db823..2b95778 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,41 +1,2 @@ -NULL = +SUBDIRS = dbus -SUBDIRS = xml - -SPEC_XML_FILES = \ - ConsoleKit.xml \ - xml/ck-introduction.xml \ - xml/ck-terms.xml \ - xml/ck-design.xml \ - xml/org.freedesktop.ConsoleKit.Manager.ref.xml \ - xml/org.freedesktop.ConsoleKit.Seat.ref.xml \ - xml/org.freedesktop.ConsoleKit.Session.ref.xml \ - $(NULL) - -if DOCBOOK_DOCS_ENABLED - -htmldocdir = $(docdir)/spec -htmldoc_DATA = ConsoleKit.html - -ConsoleKit.html : $(SPEC_XML_FILES) - $(XMLTO) xhtml-nochunks -m config.xsl ConsoleKit.xml - -endif # DOCBOOK_DOCS_ENABLED - -EXTRA_DIST = \ - ConsoleKit.xml.in \ - config.xsl \ - docbook.css \ - dbus-introspect-docs.dtd \ - $(SPEC_XML_FILES) - $(NULL) - - -MAINTAINERCLEANFILES = \ - *~ \ - Makefile.in \ - $(NULL) - -clean-local: - rm -f *~ - rm -f ConsoleKit.html diff --git a/doc/config.xsl b/doc/config.xsl deleted file mode 100644 index 7aa9def..0000000 --- a/doc/config.xsl +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/doc/dbus-introspect-docs.dtd b/doc/dbus-introspect-docs.dtd deleted file mode 100644 index ca918fb..0000000 --- a/doc/dbus-introspect-docs.dtd +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/dbus/.gitignore b/doc/dbus/.gitignore new file mode 100644 index 0000000..4337b46 --- /dev/null +++ b/doc/dbus/.gitignore @@ -0,0 +1,6 @@ +Makefile +Makefile.in +ConsoleKit.xml +ConsoleKit.html +*.o +*~ diff --git a/doc/dbus/ConsoleKit.xml.in b/doc/dbus/ConsoleKit.xml.in new file mode 100644 index 0000000..8a86511 --- /dev/null +++ b/doc/dbus/ConsoleKit.xml.in @@ -0,0 +1,74 @@ + + + + + + + +]> + + + + ConsoleKit @VERSION@ Documentation + Version @VERSION@ + 8 March, 2007 + + + William Jon + McCann + +
+ mccann@jhu.edu +
+
+
+
+
+ + + Introduction + + + + + + Concepts + + &Intro; + &Terms; + &Design; + + + + Reference + + + D-Bus API Reference + + + + ConsoleKit provides a D-Bus API for programs to obtain information about the + users, sessions, and seats that are present on a system. + + + Please see the other sections of this manual for an introduction to + these concepts. + + + This API is not yet stable and is likely to change in the future. + + + + &dbus-Manager; + &dbus-Seat; + &dbus-Session; + + + + + + Index + + +
diff --git a/doc/dbus/Makefile.am b/doc/dbus/Makefile.am new file mode 100644 index 0000000..d8bb0ee --- /dev/null +++ b/doc/dbus/Makefile.am @@ -0,0 +1,46 @@ +NULL = + +SPEC_XML_FILES = \ + ConsoleKit.xml \ + ck-introduction.xml \ + ck-terms.xml \ + ck-design.xml \ + org.freedesktop.ConsoleKit.Manager.ref.xml \ + org.freedesktop.ConsoleKit.Seat.ref.xml \ + org.freedesktop.ConsoleKit.Session.ref.xml \ + $(NULL) + +if DOCBOOK_DOCS_ENABLED + +htmldocdir = $(docdir)/spec +htmldoc_DATA = ConsoleKit.html + +ConsoleKit.html : $(SPEC_XML_FILES) + $(XMLTO) xhtml-nochunks -m $(top_srcdir)/doc/dbus/config.xsl ConsoleKit.xml + +endif # DOCBOOK_DOCS_ENABLED + +org.freedesktop.ConsoleKit.Manager.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Manager.xml spec-to-docbook.xsl + $(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@ +org.freedesktop.ConsoleKit.Seat.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Seat.xml spec-to-docbook.xsl + $(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@ +org.freedesktop.ConsoleKit.Session.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Session.xml spec-to-docbook.xsl + $(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@ + +EXTRA_DIST = \ + spec-to-docbook.xsl \ + ConsoleKit.xml.in \ + config.xsl \ + docbook.css \ + dbus-introspect-docs.dtd \ + $(SPEC_XML_FILES) + $(NULL) + +MAINTAINERCLEANFILES = \ + *~ \ + Makefile.in \ + $(NULL) + +clean-local: + rm -f *~ *.ref.xml + rm -f ConsoleKit.html diff --git a/doc/dbus/ck-design.xml b/doc/dbus/ck-design.xml new file mode 100644 index 0000000..1148773 --- /dev/null +++ b/doc/dbus/ck-design.xml @@ -0,0 +1,180 @@ + + Design + + + Session Lifecycle + +The session leader process is responsible for asking +ConsoleKit to open a new session. In this respect, it is +similar to the traditional POSIX user login accounting framework. +In the typical case, the session leader is either an immediate descendant of +a login manager or the login manager itself. The leader makes a connection to the D-Bus system bus and asks ConsoleKit to open a session. There are two methods available for opening a session: org.freedesktop.ConsoleKit.Manager.OpenSession() and org.freedesktop.ConsoleKit.Manager.OpenSessionWithParameters(). + + +If the operation succeeds, a secret cookie will be returned to the session leader. The session leader should store this secret in the environment as XDG_SESSION_COOKIE so that it may be shared with its child processes. + + +At this point the session will be registered with ConsoleKit and a particular +set of information about the session will be stored along with it. + + +ConsoleKit will decide, based on the information associated with the session, what Seat the session will be added to. + + +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. + + +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. + + + + + Expected Usage + Use of this service will usually follow one of the following patterns: + + + Text Login Manager + This pattern operates as the Session Leader for a new Session. This pattern needs: + + + + To open a new Session. + + + To set properties for the Session. + + + To maintain a connection to the D-Bus system bus. + + + To close the Session at logout. + + + + + + Graphical Login Manager + 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: + + + + To determine which Seat it is running on. + + + To know if the current seat supports session switching. + + + A list of all sessions on the current Seat. + + + To know which session is active for the current Seat. + + + To know when the session active state changes. + + + To know when sessions are added or removed. + + + Access to the metadata for any open Session. + + + + + + System Daemon + This is generally a daemon process running outside of a user session as a special user. This pattern needs: + + + + To know if any user sessions are open. + + + To know if the system is currently being used. + + + + + + Hardware Abstraction Layer + 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: + + + + To determine what hardware is associated with a Seat. + + + To determine what Session is active and inactive on a particular Seat. + + + To know when the session active state changes. + + + To determine what Session a process belongs to. + + + + + + Fast User Switching Agent + 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: + + + + To determine which session it is running in. + + + To determine which Seat it is running on. + + + To know if the current seat supports session switching. + + + A list of all sessions on the current Seat. + + + Which session is active for the current Seat. + + + To know when the session active state changes. + + + Access to the metadata for any open Session. + + + To know when sessions are added or removed. + + + + + + Session Daemon (aka Policy Agent) + This is typically a daemon running in a user session that acts on policy only when the session is active. This pattern needs: + + + + To determine which session it is running in. + + + To know when the session active state changes. + + + + + + Session Application + This is typically an application running in a user session that may alter its behavior when the session active state changes. This pattern needs: + + + + To determine which session it is running in. + + + To know when the session active state changes. + + + + + + + diff --git a/doc/dbus/ck-introduction.xml b/doc/dbus/ck-introduction.xml new file mode 100644 index 0000000..b38adf5 --- /dev/null +++ b/doc/dbus/ck-introduction.xml @@ -0,0 +1,28 @@ + + Introduction + + + About + + ConsoleKit 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 + these items or of any of the metadata associated with them. + + + + + Defining the Problem + + To be written. + + + + + Relevant art + + To be written. + + + + diff --git a/doc/dbus/ck-terms.xml b/doc/dbus/ck-terms.xml new file mode 100644 index 0000000..d3d544d --- /dev/null +++ b/doc/dbus/ck-terms.xml @@ -0,0 +1,67 @@ + + Terminology + + + Session + +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. + + +As an implementation detail, for now, this secret should be stored in +the process environment by the session leader under the name +XDG_SESSION_COOKIE. When and if we are able to take advantage of a +mechanism in the underlying system to store session registration +information - we will. However, such a mechanism is not known at the +present time. + + +Using an environment variable does have certain advantages. For one, +it is quite easy for a process to opt-out of a Session by simply +unsetting the XDG_SESSION_COOKIE variable. + + +Limitations of using an environment variable implementation include +not being able to strictly limit visibility of the secret to a particular +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. + + + + + Session leader + +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 +org.freedesktop.ConsoleKit.Manager.OpenSessionWithParameters(). The session +that it registers will remain open until the connection to the system +bus is lost or it calls org.freedesktop.ConsoleKit.Manager.CloseSession(). + + +The session leader is the only process for which CloseSession() will +be allowed. + + + + + Seat + +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. + + +At the present time, all Sessions that are considered "local" to +a system will be added the the first Seat and every other Session +will be added to its own Seat. + + +True, hardware, multi-seat capabilities will be added in a later release. + + + + diff --git a/doc/dbus/config.xsl b/doc/dbus/config.xsl new file mode 100644 index 0000000..7aa9def --- /dev/null +++ b/doc/dbus/config.xsl @@ -0,0 +1,6 @@ + + + + diff --git a/doc/dbus/dbus-introspect-docs.dtd b/doc/dbus/dbus-introspect-docs.dtd new file mode 100644 index 0000000..ca918fb --- /dev/null +++ b/doc/dbus/dbus-introspect-docs.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/dbus/docbook.css b/doc/dbus/docbook.css new file mode 100644 index 0000000..6a7373e --- /dev/null +++ b/doc/dbus/docbook.css @@ -0,0 +1,78 @@ +body +{ + font-family: sans-serif; +} +h1.title +{ +} +.permission +{ + color: #ee0000; + text-decoration: underline; +} +.synopsis, .classsynopsis +{ + background: #eeeeee; + border: solid 1px #aaaaaa; + padding: 0.5em; +} +.programlisting +{ + background: #eeeeff; + border: solid 1px #aaaaff; + padding: 0.5em; +} +.variablelist +{ + padding: 4px; + margin-left: 3em; +} +.variablelist td:first-child +{ + vertical-align: top; +} +td.shortcuts +{ + color: #770000; + font-size: 80%; +} +div.refnamediv +{ + margin-top: 2em; +} +div.toc +{ + border: 2em; +} +a +{ + text-decoration: none; +} +a:hover +{ + text-decoration: underline; + color: #FF0000; +} + +div.table table +{ + border-collapse: collapse; + border-spacing: 0px; + border-style: solid; + border-color: #777777; + border-width: 1px; +} + +div.table table td, div.table table th +{ + border-style: solid; + border-color: #777777; + border-width: 1px; + padding: 3px; + vertical-align: top; +} + +div.table table th +{ + background-color: #eeeeee; +} diff --git a/doc/dbus/spec-to-docbook.xsl b/doc/dbus/spec-to-docbook.xsl new file mode 100644 index 0000000..1864414 --- /dev/null +++ b/doc/dbus/spec-to-docbook.xsl @@ -0,0 +1,543 @@ + + + + + + + + + + + + + + + + + + + + + + interface + + + + Methods + + + + + + + + + + + Signals + + + + + + + + + + + Implemented Interfaces + + Objects implementing also implements + org.freedesktop.DBus.Introspectable, + org.freedesktop.DBus.Properties + + + + + + + Properties + + + + + + + + + + + Description + + + + + + + Details + + + + + + + + + Signal Details + + + + + + + + + + + Property Details + + + + + + + + + + + + + + + + +: + + + + + + + + + + + + + + + + + + + + + + <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>:<xsl:value-of select="@name"/></xsl:attribute></anchor>The "<xsl:value-of select="@name"/>" property + +'' + + + + + + + + + + + + + +: + + + + + + + + + + + + + + + + + + + + + <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>::<xsl:value-of select="@name"/></xsl:attribute></anchor>The <xsl:value-of select="@name"/> signal + + () + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Since + + + + + + + + /> + + + + + + + is deprecated since version and should not be used in newly-written code. Use + + + + + : + + + :: + + + . + + + + + + + + + + + + + + + +instead. + + + + + + + + + + + + + + + + + +See also: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +: + + + + + + + + + + + + Errors + + + + : + + + + + + + + + + + + Permissions + + + + + + + + + + + + + + + + + + <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>.<xsl:value-of select="@name"/></xsl:attribute></anchor><xsl:value-of select="@name"/> () + + () + + + + + + + + + + + + + + + + +:'' + + + + + + + + + + + + +::() + + + + + + + + + + + + +.() + + + + + +'' +, + + + + + +'' +, + + + + + + +'' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/docbook.css b/doc/docbook.css deleted file mode 100644 index 6a7373e..0000000 --- a/doc/docbook.css +++ /dev/null @@ -1,78 +0,0 @@ -body -{ - font-family: sans-serif; -} -h1.title -{ -} -.permission -{ - color: #ee0000; - text-decoration: underline; -} -.synopsis, .classsynopsis -{ - background: #eeeeee; - border: solid 1px #aaaaaa; - padding: 0.5em; -} -.programlisting -{ - background: #eeeeff; - border: solid 1px #aaaaff; - padding: 0.5em; -} -.variablelist -{ - padding: 4px; - margin-left: 3em; -} -.variablelist td:first-child -{ - vertical-align: top; -} -td.shortcuts -{ - color: #770000; - font-size: 80%; -} -div.refnamediv -{ - margin-top: 2em; -} -div.toc -{ - border: 2em; -} -a -{ - text-decoration: none; -} -a:hover -{ - text-decoration: underline; - color: #FF0000; -} - -div.table table -{ - border-collapse: collapse; - border-spacing: 0px; - border-style: solid; - border-color: #777777; - border-width: 1px; -} - -div.table table td, div.table table th -{ - border-style: solid; - border-color: #777777; - border-width: 1px; - padding: 3px; - vertical-align: top; -} - -div.table table th -{ - background-color: #eeeeee; -} diff --git a/doc/xml/Makefile.am b/doc/xml/Makefile.am deleted file mode 100644 index 4c279be..0000000 --- a/doc/xml/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -NULL = - -all : org.freedesktop.ConsoleKit.Manager.ref.xml org.freedesktop.ConsoleKit.Seat.ref.xml org.freedesktop.ConsoleKit.Session.ref.xml - -org.freedesktop.ConsoleKit.Manager.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Manager.xml spec-to-docbook.xsl - $(XSLTPROC) $(top_srcdir)/doc/xml/spec-to-docbook.xsl $< | tail -n +2 >> $@ -org.freedesktop.ConsoleKit.Seat.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Seat.xml spec-to-docbook.xsl - $(XSLTPROC) $(top_srcdir)/doc/xml/spec-to-docbook.xsl $< | tail -n +2 >> $@ -org.freedesktop.ConsoleKit.Session.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Session.xml spec-to-docbook.xsl - $(XSLTPROC) $(top_srcdir)/doc/xml/spec-to-docbook.xsl $< | tail -n +2 >> $@ - -EXTRA_DIST = spec-to-docbook.xsl - -MAINTAINERCLEANFILES = \ - *~ \ - Makefile.in \ - $(NULL) - -clean-local: - rm -f *~ *.ref.xml diff --git a/doc/xml/ck-design.xml b/doc/xml/ck-design.xml deleted file mode 100644 index 1148773..0000000 --- a/doc/xml/ck-design.xml +++ /dev/null @@ -1,180 +0,0 @@ - - Design - - - Session Lifecycle - -The session leader process is responsible for asking -ConsoleKit to open a new session. In this respect, it is -similar to the traditional POSIX user login accounting framework. -In the typical case, the session leader is either an immediate descendant of -a login manager or the login manager itself. The leader makes a connection to the D-Bus system bus and asks ConsoleKit to open a session. There are two methods available for opening a session: org.freedesktop.ConsoleKit.Manager.OpenSession() and org.freedesktop.ConsoleKit.Manager.OpenSessionWithParameters(). - - -If the operation succeeds, a secret cookie will be returned to the session leader. The session leader should store this secret in the environment as XDG_SESSION_COOKIE so that it may be shared with its child processes. - - -At this point the session will be registered with ConsoleKit and a particular -set of information about the session will be stored along with it. - - -ConsoleKit will decide, based on the information associated with the session, what Seat the session will be added to. - - -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. - - -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. - - - - - Expected Usage - Use of this service will usually follow one of the following patterns: - - - Text Login Manager - This pattern operates as the Session Leader for a new Session. This pattern needs: - - - - To open a new Session. - - - To set properties for the Session. - - - To maintain a connection to the D-Bus system bus. - - - To close the Session at logout. - - - - - - Graphical Login Manager - 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: - - - - To determine which Seat it is running on. - - - To know if the current seat supports session switching. - - - A list of all sessions on the current Seat. - - - To know which session is active for the current Seat. - - - To know when the session active state changes. - - - To know when sessions are added or removed. - - - Access to the metadata for any open Session. - - - - - - System Daemon - This is generally a daemon process running outside of a user session as a special user. This pattern needs: - - - - To know if any user sessions are open. - - - To know if the system is currently being used. - - - - - - Hardware Abstraction Layer - 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: - - - - To determine what hardware is associated with a Seat. - - - To determine what Session is active and inactive on a particular Seat. - - - To know when the session active state changes. - - - To determine what Session a process belongs to. - - - - - - Fast User Switching Agent - 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: - - - - To determine which session it is running in. - - - To determine which Seat it is running on. - - - To know if the current seat supports session switching. - - - A list of all sessions on the current Seat. - - - Which session is active for the current Seat. - - - To know when the session active state changes. - - - Access to the metadata for any open Session. - - - To know when sessions are added or removed. - - - - - - Session Daemon (aka Policy Agent) - This is typically a daemon running in a user session that acts on policy only when the session is active. This pattern needs: - - - - To determine which session it is running in. - - - To know when the session active state changes. - - - - - - Session Application - This is typically an application running in a user session that may alter its behavior when the session active state changes. This pattern needs: - - - - To determine which session it is running in. - - - To know when the session active state changes. - - - - - - - diff --git a/doc/xml/ck-introduction.xml b/doc/xml/ck-introduction.xml deleted file mode 100644 index b38adf5..0000000 --- a/doc/xml/ck-introduction.xml +++ /dev/null @@ -1,28 +0,0 @@ - - Introduction - - - About - - ConsoleKit 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 - these items or of any of the metadata associated with them. - - - - - Defining the Problem - - To be written. - - - - - Relevant art - - To be written. - - - - diff --git a/doc/xml/ck-terms.xml b/doc/xml/ck-terms.xml deleted file mode 100644 index d3d544d..0000000 --- a/doc/xml/ck-terms.xml +++ /dev/null @@ -1,67 +0,0 @@ - - Terminology - - - Session - -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. - - -As an implementation detail, for now, this secret should be stored in -the process environment by the session leader under the name -XDG_SESSION_COOKIE. When and if we are able to take advantage of a -mechanism in the underlying system to store session registration -information - we will. However, such a mechanism is not known at the -present time. - - -Using an environment variable does have certain advantages. For one, -it is quite easy for a process to opt-out of a Session by simply -unsetting the XDG_SESSION_COOKIE variable. - - -Limitations of using an environment variable implementation include -not being able to strictly limit visibility of the secret to a particular -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. - - - - - Session leader - -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 -org.freedesktop.ConsoleKit.Manager.OpenSessionWithParameters(). The session -that it registers will remain open until the connection to the system -bus is lost or it calls org.freedesktop.ConsoleKit.Manager.CloseSession(). - - -The session leader is the only process for which CloseSession() will -be allowed. - - - - - Seat - -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. - - -At the present time, all Sessions that are considered "local" to -a system will be added the the first Seat and every other Session -will be added to its own Seat. - - -True, hardware, multi-seat capabilities will be added in a later release. - - - - diff --git a/doc/xml/spec-to-docbook.xsl b/doc/xml/spec-to-docbook.xsl deleted file mode 100644 index 1864414..0000000 --- a/doc/xml/spec-to-docbook.xsl +++ /dev/null @@ -1,543 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - interface - - - - Methods - - - - - - - - - - - Signals - - - - - - - - - - - Implemented Interfaces - - Objects implementing also implements - org.freedesktop.DBus.Introspectable, - org.freedesktop.DBus.Properties - - - - - - - Properties - - - - - - - - - - - Description - - - - - - - Details - - - - - - - - - Signal Details - - - - - - - - - - - Property Details - - - - - - - - - - - - - - - - -: - - - - - - - - - - - - - - - - - - - - - - <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>:<xsl:value-of select="@name"/></xsl:attribute></anchor>The "<xsl:value-of select="@name"/>" property - -'' - - - - - - - - - - - - - -: - - - - - - - - - - - - - - - - - - - - - <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>::<xsl:value-of select="@name"/></xsl:attribute></anchor>The <xsl:value-of select="@name"/> signal - - () - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Since - - - - - - - - /> - - - - - - - is deprecated since version and should not be used in newly-written code. Use - - - - - : - - - :: - - - . - - - - - - - - - - - - - - - -instead. - - - - - - - - - - - - - - - - - -See also: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -: - - - - - - - - - - - - Errors - - - - : - - - - - - - - - - - - Permissions - - - - - - - - - - - - - - - - - - <anchor role="function"><xsl:attribute name="id"><xsl:value-of select="$basename"/>.<xsl:value-of select="@name"/></xsl:attribute></anchor><xsl:value-of select="@name"/> () - - () - - - - - - - - - - - - - - - - -:'' - - - - - - - - - - - - -::() - - - - - - - - - - - - -.() - - - - - -'' -, - - - - - -'' -, - - - - - - -'' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit