mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
backend/session/libseat: set XDG_SESSION_TYPE
libseat will call logind's SetType method if necessary.
This commit is contained in:
parent
1336ad2a23
commit
90c8452959
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ static struct wlr_session *libseat_session_create(struct wl_display *disp) {
|
||||||
libseat_set_log_handler(log_libseat);
|
libseat_set_log_handler(log_libseat);
|
||||||
libseat_set_log_level(LIBSEAT_LOG_LEVEL_ERROR);
|
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);
|
session->seat = libseat_open_seat(&seat_listener, session);
|
||||||
if (session->seat == NULL) {
|
if (session->seat == NULL) {
|
||||||
wlr_log_errno(WLR_ERROR, "Unable to create seat");
|
wlr_log_errno(WLR_ERROR, "Unable to create seat");
|
||||||
|
|
Loading…
Reference in a new issue