diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-04 20:04:53 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-05 00:14:04 +0100 |
commit | 90c8452959470461497c4a83aac0bd93efb0a524 (patch) | |
tree | 94d6fb16df47cbe9f735caaf5ac36be8a0275803 /backend | |
parent | 1336ad2a23bfe5a76c161c5985d99e6f4b127931 (diff) |
backend/session/libseat: set XDG_SESSION_TYPE
libseat will call logind's SetType method if necessary.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/session/libseat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/session/libseat.c b/backend/session/libseat.c index f3ad789c..ccbc77bd 100644 --- a/backend/session/libseat.c +++ b/backend/session/libseat.c @@ -97,6 +97,9 @@ static struct wlr_session *libseat_session_create(struct wl_display *disp) { libseat_set_log_handler(log_libseat); libseat_set_log_level(LIBSEAT_LOG_LEVEL_ERROR); + // libseat will take care of updating the logind state if necessary + setenv("XDG_SESSION_TYPE", "wayland", 1); + session->seat = libseat_open_seat(&seat_listener, session); if (session->seat == NULL) { wlr_log_errno(WLR_ERROR, "Unable to create seat"); |