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"); }