Set XDG_SESSION_ID to fix a few bugs

This commit is contained in:
AnErrupTion committed 2022-04-19 21:46:40 +02:00
1 parent 27c5673116
commit 25034d1536
1 file changed
+1
+1
View File
@@ -271,6 +271,7 @@ void env_xdg(const char* tty_id)
snprintf(user, 15, "/run/user/%d", getuid());
setenv("XDG_RUNTIME_DIR", user, 0);
setenv("XDG_SESSION_CLASS", "user", 0);
setenv("XDG_SESSION_ID", "1", 0);
setenv("XDG_SEAT", "seat0", 0);
setenv("XDG_VTNR", tty_id, 0);
}