X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_session_is_active.xml;h=e9840669c27c4efa4b0181bf5c88ba63c6a6e79c;hp=407354ae7fe5a1706cdf4571d8798502f9535d90;hb=820aced6f6067a6b7c57b7d36e44f64378870cbf;hpb=3b3d7d069d10d53336dbada1c67f739e3492b218 diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index 407354ae7..e9840669c 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -51,6 +51,7 @@ sd_session_get_service sd_session_get_type sd_session_get_class + sd_session_get_desktop sd_session_get_display sd_session_get_tty sd_session_get_vt @@ -109,6 +110,12 @@ char **class + + int sd_session_get_desktop + const char *session + char **desktop + + int sd_session_get_display const char *session @@ -171,7 +178,7 @@ returned. This function is a more generic version of sd_session_is_active(). The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_uid() may be @@ -185,7 +192,7 @@ identifier belongs to. Note that not all sessions are attached to a seat, this call will fail for them. The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_service() @@ -194,7 +201,7 @@ session identified by the specified session identifier. The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_type() may @@ -204,7 +211,7 @@ wayland, tty, mir or unspecified and needs to be freed with the libc - free3 + free3 call after use. sd_session_get_class() may @@ -215,7 +222,23 @@ lock-screen, or background and needs to be freed with the libc - free3 + free3 + call after use. + + sd_session_get_desktop() may + be used to determine the brand of the desktop running on + the session identified by the specified session identifier. + This field can be set freely by desktop environments and + does not follow any special formatting. However, desktops + are strongly recommended to use the same identifiers and + capitalization as for + $XDG_CURRENT_DESKTOP, as defined by + the Desktop + Entry + Specification. The returned string needs to be + freed with the libc + free3 call after use. sd_session_get_display() @@ -223,7 +246,7 @@ session identified by the specified session identifier. The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_remote_host() @@ -231,7 +254,7 @@ session identified by the specified session identifier. The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_remote_user() @@ -239,7 +262,7 @@ session identified by the specified session identifier. The returned string needs to be freed with the libc - free3 + free3 call after use. Note that this value is rarely known to the system, and even then should not be relied on. @@ -248,7 +271,7 @@ session identified by the specified session identifier. The returned string needs to be freed with the libc - free3 + free3 call after use. sd_session_get_vt() @@ -301,7 +324,7 @@ sd_session_get_tty() interfaces are available as a shared library, which can be compiled and linked to with the - libsystemd pkg-config1 + libsystemd pkg-config1 file.