diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index f16787d00..aa50e19a2 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -311,9 +311,6 @@ void Launcher::init() { // and https://github.com/telegramdesktop/tdesktop/issues/7549 // and https://github.com/telegramdesktop/tdesktop/issues/948 // more info: https://doc.qt.io/qt-5/qguiapplication.html#isFallbackSessionManagementEnabled -#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) - QApplication::setAttribute(Qt::AA_DisableSessionManager, true); -#endif // Qt >= 5.14 QApplication::setFallbackSessionManagementEnabled(false); initHook(); diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp index 0a21a1841..f35c13be2 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp @@ -50,6 +50,10 @@ Launcher::Launcher(int argc, char *argv[]) } void Launcher::initHook() { +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + QApplication::setAttribute(Qt::AA_DisableSessionManager, true); +#endif // Qt >= 5.14 + QApplication::setDesktopFileName(GetLauncherFilename()); }