From 2bdf027de180b0a66eb05ce44e85d79c7bbc17f0 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Mon, 26 Aug 2024 10:32:47 +0200 Subject: [PATCH] man: document "web" session type This has been supported since e9e74f28d783 but never got documented. Add it to the man pages (plus one comment in a header). Closes #34127. --- man/org.freedesktop.login1.xml | 5 +++-- man/pam_systemd.xml | 3 ++- src/systemd/sd-login.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/man/org.freedesktop.login1.xml b/man/org.freedesktop.login1.xml index 587594fac03..c5263efc827 100644 --- a/man/org.freedesktop.login1.xml +++ b/man/org.freedesktop.login1.xml @@ -1516,8 +1516,9 @@ node /org/freedesktop/login1/session/1 { available. Type encodes the session type. It's one of unspecified (for - cron PAM sessions and suchlike), tty (for text logins) or - x11/mir/wayland (for graphical logins). + cron PAM sessions and suchlike), tty (for text logins), web (for + web-based logins), or x11/mir/wayland (for + graphical logins). Class encodes the session class. It's one of user (for normal user sessions), greeter (for display manager pseudo-sessions), or diff --git a/man/pam_systemd.xml b/man/pam_systemd.xml index d6fc6bb8b8d..40a4564a22c 100644 --- a/man/pam_systemd.xml +++ b/man/pam_systemd.xml @@ -155,7 +155,8 @@ Takes a string argument which sets the session type. The XDG_SESSION_TYPE environment variable (see below) takes precedence. One of unspecified, - tty, x11, wayland or mir. See + tty, x11, wayland, mir, or + web. See sd_session_get_type3 for details about the session type. diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index c84f2c06bcb..99ca8b8ed51 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -172,7 +172,7 @@ int sd_session_get_start_time(const char *session, uint64_t *usec); /* Determine the (PAM) service name this session was registered by. */ int sd_session_get_service(const char *session, char **service); -/* Determine the type of this session, i.e. one of "tty", "x11", "wayland", "mir" or "unspecified". */ +/* Determine the type of this session, i.e. one of "tty", "x11", "wayland", "mir", "web", or "unspecified". */ int sd_session_get_type(const char *session, char **type); /* Determine the class of this session, i.e. one of "user", "greeter" or "lock-screen". */