os: Try to discover the current seat with the XDG_SEAT var first

This commit is contained in:
nerdopolis 2021-10-08 18:15:29 -04:00 committed by Povilas Kanapickas
parent 246ae00ba3
commit ca1dfdc9aa

View File

@ -681,6 +681,7 @@ ProcessCommandLine(int argc, char *argv[])
ErrorF("Failed to disable listen for %s transport",
defaultNoListenList[i]);
}
SeatId = getenv("XDG_SEAT");
for (i = 1; i < argc; i++) {
/* call ddx first, so it can peek/override if it wants */