mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
backend/session/logind: log when using XDG_SESSION_ID
This makes it easier to figure out how wlroots selected the session.
This commit is contained in:
parent
0e76f92de7
commit
c491a21d25
1 changed files with 2 additions and 0 deletions
|
@ -569,6 +569,8 @@ static bool get_display_session(char **session_id) {
|
||||||
char *xdg_session_id = getenv("XDG_SESSION_ID");
|
char *xdg_session_id = getenv("XDG_SESSION_ID");
|
||||||
|
|
||||||
if (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
|
// This just checks whether the supplied session ID is valid
|
||||||
if (sd_session_is_active(xdg_session_id) < 0) {
|
if (sd_session_is_active(xdg_session_id) < 0) {
|
||||||
wlr_log(WLR_ERROR, "Invalid XDG_SESSION_ID: '%s'", xdg_session_id);
|
wlr_log(WLR_ERROR, "Invalid XDG_SESSION_ID: '%s'", xdg_session_id);
|
||||||
|
|
Loading…
Reference in a new issue