diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-05 18:55:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-05 18:55:18 +0100 |
commit | 49ebd11fb0ea6af249990439bf0690641e8be559 (patch) | |
tree | ce96ae7e60f7e541d9d46870df5df3efa2a51ead /man | |
parent | d9eb81f9844f6d28b52e44b2c0e6e280a61d8200 (diff) |
logind: make session type and class settable via the same ways
If the session type/class is set via environment variables, use that,
and otherwise fallback to something that is set via the PAM module
command line.
Diffstat (limited to 'man')
-rw-r--r-- | man/pam_systemd.xml | 23 | ||||
-rw-r--r-- | man/sd_session_is_active.xml | 2 |
2 files changed, 23 insertions, 2 deletions
diff --git a/man/pam_systemd.xml b/man/pam_systemd.xml index d3edc32d2d..f312ef2b99 100644 --- a/man/pam_systemd.xml +++ b/man/pam_systemd.xml @@ -127,7 +127,28 @@ <listitem><para>Takes a string argument which sets the session class. The XDG_SESSION_CLASS environmental variable - takes precedence.</para></listitem> + takes precedence. One of + <literal>user</literal>, + <literal>greeter</literal>, + <literal>lock-screen</literal> or + <literal>background</literal>. See + <citerefentry><refentrytitle>sd_session_get_class</refentrytitle><manvolnum>3</manvolnum></citerefentry> + for details about the session class.</para></listitem> + </varlistentry> + + <varlistentry> + <term><option>type=</option></term> + + <listitem><para>Takes a string + argument which sets the session type. + The XDG_SESSION_TYPE environmental + variable takes precedence. One of + <literal>unspecified</literal>, + <literal>tty</literal>, + <literal>x11</literal> or + <literal>wayland</literal>. See + <citerefentry><refentrytitle>sd_session_get_type</refentrytitle><manvolnum>3</manvolnum></citerefentry> + for details about the session type.</para></listitem> </varlistentry> <varlistentry> diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index bff6b04eab..4d5e6d113e 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -201,7 +201,7 @@ be used to determine the type of the session identified by the specified session identifier. The returned string is one of <literal>x11</literal>, - <literal>tty</literal> or + <literal>wayland</literal>, <literal>tty</literal> or <literal>unspecified</literal> and needs to be freed with the libc <citerefentry><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry> |