Disable "open level folder" in Steam Big Picture mode

The environment variable SteamTenfoot corresponds with the game running
in Steam Big Picture mode or SteamOS if it is defined. There's a
certification process for both full controller support and Big Picture
mode, and being able to launch a file window in Big Picture mode is an
instant cert failure.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-18 11:32:06 -04:00
1 parent bc9013c228
commit ca0e9ec963
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ bool FILESYSTEM_openDirectory(const char *dname)
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__)
bool FILESYSTEM_openDirectoryEnabled()
{
return true;
return std::getenv("SteamTenfoot") == NULL;
}
#ifdef __linux__
const char* open_cmd = "xdg-open";