From 5292d75617553ceaf73aa523bc5f060ad8945733 Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Thu, 30 Aug 2018 09:14:36 +0200 Subject: [PATCH] Linux: disable RegisterCustomScheme when internal updater is disabled Closes: https://github.com/telegramdesktop/tdesktop/issues/5118 Signed-off-by: Henning Schild --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index ed79c6d65..f3c5a0449 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -16,6 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "platform/platform_notifications_manager.h" #include "storage/localstorage.h" #include "core/crash_reports.h" +#include "core/update_checker.h" #include #include @@ -409,6 +410,8 @@ void RegisterCustomScheme() { #ifndef TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME auto home = getHomeDir(); if (home.isEmpty() || cBetaVersion() || cExeName().isEmpty()) return; // don't update desktop file for beta version + if (Core::UpdaterDisabled()) + return; #ifndef TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION DEBUG_LOG(("App Info: placing .desktop file"));