Fully disable session manager interaction

Since session manager functionality is not used anyway
This commit is contained in:
Ilya Fedin 2020-12-16 11:05:06 +04:00 committed by John Preston
parent f0b8d4e62b
commit a0b0799399
1 changed files with 3 additions and 0 deletions

View File

@ -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();