From a93340c2e4cfbf8acc40f695c7fc32634a8ab84f Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 27 Nov 2023 03:48:46 +0400 Subject: [PATCH] Try to restore session manager connection on Linux --- Telegram/SourceFiles/platform/linux/launcher_linux.cpp | 4 ---- Telegram/SourceFiles/platform/linux/launcher_linux.h | 1 - 2 files changed, 5 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp index 55236a156..d7a6fe942 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp @@ -33,10 +33,6 @@ int Launcher::exec() { return Core::Launcher::exec(); } -void Launcher::initHook() { - QApplication::setAttribute(Qt::AA_DisableSessionManager, true); -} - bool Launcher::launchUpdater(UpdaterLaunch action) { if (cExeName().isEmpty()) { return false; diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.h b/Telegram/SourceFiles/platform/linux/launcher_linux.h index 6c8f28e91..a7909333b 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.h +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.h @@ -18,7 +18,6 @@ public: int exec() override; private: - void initHook() override; bool launchUpdater(UpdaterLaunch action) override; bool _updating = false;