From c72d5456e2d6a6c8cefbfc16a542ae03a769397f Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 20 Sep 2014 18:42:29 +0200 Subject: login: add public sd_session_get_desktop() API The desktop brand is stored as DESKTOP variable for sessions. It can be set arbitrarily by the session owner and identifies the desktop environment that is running on that session. --- man/sd_session_is_active.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'man/sd_session_is_active.xml') diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index 5006be4df5..e9840669c2 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 @@ -218,6 +225,22 @@ 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() may be used to determine the X11 display of the session identified by the specified session -- cgit v1.2.3-54-g00ecf