From cf2497fd7ec83f3d0dd5cb31b69540a2d129edad Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 10 Jul 2024 17:12:11 +0100 Subject: [PATCH] main: Only set no_display if in Steam mode. --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ec3dc462bd..cd4aeca52a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -621,8 +621,11 @@ static void UpdateCompatEnvVars() { setenv( "MANGOHUD_CONFIGFILE", szMangoConfigPath, 1 ); - const char szDefaultConfig[] = "no_display"; - fwrite( szDefaultConfig, 1, sizeof( szDefaultConfig ), pMangoConfigFile ); + if ( steamMode ) + { + const char szDefaultConfig[] = "no_display"; + fwrite( szDefaultConfig, 1, sizeof( szDefaultConfig ), pMangoConfigFile ); + } fclose( pMangoConfigFile ); } }