Don't display browser links in non-GUI environment

This commit is contained in:
Cameron Gutman 2020-02-09 11:41:44 -08:00
parent 57a1c5eb76
commit b080f7a81c

View File

@ -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