diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index b9b927c44..085582a0b 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -59,7 +59,12 @@ FilteredCommandLineArguments::FilteredCommandLineArguments( pushArgument("cocoa:fontengine=freetype"); #endif // !Q_OS_WIN } -#endif // Q_OS_WIN || Q_OS_MAC +#elif defined Q_OS_UNIX + if (Platform::DesktopEnvironment::IsGnome()) { + pushArgument("-platform"); + pushArgument("xcb;wayland"); + } +#endif // Q_OS_WIN || Q_OS_MAC || Q_OS_UNIX pushArgument(nullptr); }