From 90c8452959470461497c4a83aac0bd93efb0a524 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 4 Dec 2020 20:04:53 +0100 Subject: backend/session/libseat: set XDG_SESSION_TYPE libseat will call logind's SetType method if necessary. --- backend/session/libseat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend') 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"); -- cgit v1.2.3