Set XDG_SESSION_ID to fix a few bugs

This commit is contained in:
AnErrupTion 2022-04-19 21:46:40 +02:00 committed by randalthor17
parent ba1c4ff119
commit 6bd009c1ef
1 changed files with 1 additions and 0 deletions

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);
}