From a0b0799399565ecafa7e6d45c545d016d5e85fe8 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 16 Dec 2020 11:05:06 +0400 Subject: [PATCH] Fully disable session manager interaction Since session manager functionality is not used anyway --- Telegram/SourceFiles/core/launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index aa50e19a2..f16787d00 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -311,6 +311,9 @@ 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();