From df06f55c7f8f149658d2ecc7ceee3585ddfca4c5 Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Fri, 14 Jan 2022 17:54:10 +0100 Subject: [PATCH] Use QT_QPA_PLATFORM if provided. --- Telegram/SourceFiles/core/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 27e624916..31e130a97 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -61,7 +61,7 @@ FilteredCommandLineArguments::FilteredCommandLineArguments( #endif // !Q_OS_WIN } #elif defined Q_OS_UNIX - if (Platform::DesktopEnvironment::IsGnome()) { + if (Platform::DesktopEnvironment::IsGnome() && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) { pushArgument("-platform"); pushArgument("xcb;wayland"); }