mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-10 07:07:52 +02:00
Fix env edgecase
This commit is contained in:
@@ -121,7 +121,7 @@ static int in_sandbox(void)
|
|||||||
r = lstat("/.flatpak-info", &sb);
|
r = lstat("/.flatpak-info", &sb);
|
||||||
status = r == 0 && sb.st_size > 0;
|
status = r == 0 && sb.st_size > 0;
|
||||||
|
|
||||||
if (getenv("SNAP")) {
|
if (getenv("SNAP") != NULL) {
|
||||||
status = 1;
|
status = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user