diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-06 13:07:29 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-19 22:47:49 +0100 |
commit | c491a21d2560138817c43899d3cd58e9d28e7e89 (patch) | |
tree | f418050d222a8ab4d825b72e30f8039ec30df8df /backend/session | |
parent | 0e76f92de7f5ee53a3d35ad3128b5224b9a305aa (diff) |
backend/session/logind: log when using XDG_SESSION_ID
This makes it easier to figure out how wlroots selected the session.
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/logind.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/session/logind.c b/backend/session/logind.c index 8859f1a2..0cef1356 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -569,6 +569,8 @@ static bool get_display_session(char **session_id) { char *xdg_session_id = getenv("XDG_SESSION_ID"); if (xdg_session_id) { + wlr_log(WLR_INFO, "Selecting session from XDG_SESSION_ID: %s", xdg_session_id); + // This just checks whether the supplied session ID is valid if (sd_session_is_active(xdg_session_id) < 0) { wlr_log(WLR_ERROR, "Invalid XDG_SESSION_ID: '%s'", xdg_session_id); |