mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-23 08:29:09 +00:00
Add environment variable override helper function
This allows FORCE_QT_GLES and SEPARATE_TEST_DECODER to override both true and false.
This commit is contained in:
@@ -176,8 +176,9 @@ bool WMUtils::isRunningWindowManager()
|
||||
|
||||
bool WMUtils::isRunningDesktopEnvironment()
|
||||
{
|
||||
if (qEnvironmentVariableIsSet("HAS_DESKTOP_ENVIRONMENT")) {
|
||||
return qEnvironmentVariableIntValue("HAS_DESKTOP_ENVIRONMENT");
|
||||
bool value;
|
||||
if (Utils::getEnvironmentVariableOverride("HAS_DESKTOP_ENVIRONMENT", &value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_DARWIN)
|
||||
|
||||
Reference in New Issue
Block a user