From ed80b4b7c446897adbcf7d2fcefe1396e6bed8a9 Mon Sep 17 00:00:00 2001 From: javalsai Date: Sat, 7 Sep 2024 16:31:12 +0200 Subject: [PATCH] fix(oops): wayland = wayland and xorg = xorg --- src/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth.c b/src/auth.c index f618f7d..538c510 100644 --- a/src/auth.c +++ b/src/auth.c @@ -78,9 +78,9 @@ void moarEnv(char *user, struct session session, struct passwd *pw) { if (session.type == SHELL) xdg_session_type = "tty"; if (session.type == XORG) - xdg_session_type = "wayland"; - if (session.type == WAYLAND) xdg_session_type = "x11"; + if (session.type == WAYLAND) + xdg_session_type = "wayland"; setenv("XDG_SESSION_TYPE", xdg_session_type, true); /*char *buf;*/