From 0f1d6b3b234a1f8d8c6b9dff38388ab58f695b64 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 13 Mar 2007 13:50:58 -0400 Subject: deprecate the user properties and add unix-user properties Also added deprecated notes to the docs. New code should be using GetUnixUser instead of GetUser etc. --- doc/xml/ref-ck-manager.xml | 15 +++++++++++++-- doc/xml/ref-ck-session.xml | 24 +++++++++++++++++++----- 2 files changed, 32 insertions(+), 7 deletions(-) (limited to 'doc/xml') diff --git a/doc/xml/ref-ck-manager.xml b/doc/xml/ref-ck-manager.xml index dc01375..2aceef8 100644 --- a/doc/xml/ref-ck-manager.xml +++ b/doc/xml/ref-ck-manager.xml @@ -19,6 +19,8 @@ GetSessionForUnixProcess (in 'u' pid, out 'o' ssid) GetCurrentSession (out 'o' ssid) +GetSessionsForUnixUser (in 'u' uid, + out 'ao' sessions) GetSessionsForUser (in 'u' uid, out 'ao' sessions) GetSystemIdleHint (out 'b' idle_hint) @@ -143,13 +145,22 @@ See also: /org/freedesktop/ConsoleKit/Manager \ org.freedesktop.ConsoleKit.Manager.GetCurrentSession - ssid:The object identifier for the current session<anchor role="function" id="Manager.GetSessionsForUser"/>GetSessionsForUser ()GetSessionsForUserManagerGetSessionsForUser (in 'u' uid, + ssid:The object identifier for the current session<anchor role="function" id="Manager.GetSessionsForUnixUser"/>GetSessionsForUnixUser ()GetSessionsForUnixUserManagerGetSessionsForUnixUser (in 'u' uid, + out 'ao' sessions) + This gets a list of all the Sessions + that are currently open for the specified user. + Each Session ID is an D-Bus object path for the object that implements the + Session interface. + uid:POSIX User identificationsessions:an array of Session IDs<anchor role="function" id="Manager.GetSessionsForUser"/>GetSessionsForUser ()GetSessionsForUserManagerGetSessionsForUser (in 'u' uid, out 'ao' sessions) This gets a list of all the Sessions that are currently open for the specified user. Each Session ID is an D-Bus object path for the object that implements the Session interface. - uid:User identificationsessions:an array of Session IDs<anchor role="function" id="Manager.GetSystemIdleHint"/>GetSystemIdleHint ()GetSystemIdleHintManagerGetSystemIdleHint (out 'b' idle_hint) + uid:User identificationsessions:an array of Session IDsGetSessionsForUser is deprecated since version 0.1.3 and should not be used in newly-written code. Use + + GetSessionsForUnixUser +instead.<anchor role="function" id="Manager.GetSystemIdleHint"/>GetSystemIdleHint ()GetSystemIdleHintManagerGetSystemIdleHint (out 'b' idle_hint) Returns TRUE if the idle-hint property of every open session is TRUE or if there are no open sessions. diff --git a/doc/xml/ref-ck-session.xml b/doc/xml/ref-ck-session.xml index 2c5d369..9b32318 100644 --- a/doc/xml/ref-ck-session.xml +++ b/doc/xml/ref-ck-session.xml @@ -12,6 +12,7 @@ GetSeatId (out 'o' sid) GetSessionType (out 's' type) GetUser (out 'i' uid) +GetUnixUser (out 'i' uid) GetX11Display (out 's' display) GetX11DisplayDevice (out 's' x11_display_device) GetDisplayDevice (out 's' display_device) @@ -44,7 +45,8 @@ Properties - 'user' readwrite 'u' + 'unix-user' readwrite 'u' +'user' readwrite 'u' 'session-type' readwrite 's' 'remote-host-name' readwrite 's' 'display-device' readwrite 's' @@ -81,9 +83,15 @@ See also: type:Session type See also: session-type<anchor role="function" id="Session.GetUser"/>GetUser ()GetUserSessionGetUser (out 'i' uid)Returns the user that the session belongs to. - uid:User ID + uid:User IDGetUser is deprecated since version 0.1.3 and should not be used in newly-written code. Use + + GetUnixUser +instead. See also: -user<anchor role="function" id="Session.GetX11Display"/>GetX11Display ()GetX11DisplaySessionGetX11Display (out 's' display)Returns the value of the X11 DISPLAY for this session +user<anchor role="function" id="Session.GetUnixUser"/>GetUnixUser ()GetUnixUserSessionGetUnixUser (out 'i' uid)Returns the POSIX user ID that the session belongs to. + uid:POSIX User ID +See also: +unix-user<anchor role="function" id="Session.GetX11Display"/>GetX11Display ()GetX11DisplaySessionGetX11Display (out 's' display)Returns the value of the X11 DISPLAY for this session if one is present. display:The value of the X11 display See also: @@ -167,10 +175,16 @@ See also: Emitted in response to a call to the Unlock() method. It is intended that the screensaver for the session should unlock the screen in response to this signal. - Property Details<anchor role="function" id="Session:user"/>The "user" propertyuserSession'user' readwrite 'u' + Property Details<anchor role="function" id="Session:unix-user"/>The "unix-user" propertyunix-userSession'unix-user' readwrite 'u' + + The user assigned to the session. + <anchor role="function" id="Session:user"/>The "user" propertyuserSession'user' readwrite 'u' The user assigned to the session. - <anchor role="function" id="Session:session-type"/>The "session-type" propertysession-typeSession'session-type' readwrite 's' + user is deprecated since version 0.1.3 and should not be used in newly-written code. Use + + unix-user +instead.<anchor role="function" id="Session:session-type"/>The "session-type" propertysession-typeSession'session-type' readwrite 's' The type of the session. Warning: we haven't yet defined the allowed values for this property. -- cgit