aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-04 20:04:53 +0100
committerSimon Ser <contact@emersion.fr>2020-12-05 00:14:04 +0100
commit90c8452959470461497c4a83aac0bd93efb0a524 (patch)
tree94d6fb16df47cbe9f735caaf5ac36be8a0275803
parent1336ad2a23bfe5a76c161c5985d99e6f4b127931 (diff)
backend/session/libseat: set XDG_SESSION_TYPE
libseat will call logind's SetType method if necessary.
-rw-r--r--backend/session/libseat.c3
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");