mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 02:18:00 +02:00
fix(oops): wayland = wayland and xorg = xorg
This commit is contained in:
@@ -78,9 +78,9 @@ void moarEnv(char *user, struct session session, struct passwd *pw) {
|
|||||||
if (session.type == SHELL)
|
if (session.type == SHELL)
|
||||||
xdg_session_type = "tty";
|
xdg_session_type = "tty";
|
||||||
if (session.type == XORG)
|
if (session.type == XORG)
|
||||||
xdg_session_type = "wayland";
|
|
||||||
if (session.type == WAYLAND)
|
|
||||||
xdg_session_type = "x11";
|
xdg_session_type = "x11";
|
||||||
|
if (session.type == WAYLAND)
|
||||||
|
xdg_session_type = "wayland";
|
||||||
setenv("XDG_SESSION_TYPE", xdg_session_type, true);
|
setenv("XDG_SESSION_TYPE", xdg_session_type, true);
|
||||||
|
|
||||||
/*char *buf;*/
|
/*char *buf;*/
|
||||||
|
Reference in New Issue
Block a user