From b080f7a81cebfffa8d2a28463776b143ca375af1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 9 Feb 2020 11:41:44 -0800 Subject: [PATCH] Don't display browser links in non-GUI environment --- app/backend/systemproperties.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/backend/systemproperties.cpp b/app/backend/systemproperties.cpp index db7323fd..6af1c8e4 100644 --- a/app/backend/systemproperties.cpp +++ b/app/backend/systemproperties.cpp @@ -8,6 +8,7 @@ SystemProperties::SystemProperties() { + hasWindowManager = WMUtils::isRunningWindowManager(); isRunningWayland = WMUtils::isRunningWayland(); isRunningXWayland = isRunningWayland && QGuiApplication::platformName() == "xcb"; @@ -18,7 +19,8 @@ SystemProperties::SystemProperties() #endif #ifndef STEAM_LINK - hasBrowser = true; + // Assume we can probably launch a browser if we're in a GUI environment + hasBrowser = hasWindowManager; #else hasBrowser = false; #endif @@ -29,8 +31,6 @@ SystemProperties::SystemProperties() hasDiscordIntegration = false; #endif - hasWindowManager = WMUtils::isRunningWindowManager(); - unmappedGamepads = SdlInputHandler::getUnmappedGamepads(); // Populate data that requires talking to SDL. We do it all in one shot