Skip to content

Commit

Permalink
Linux: disable RegisterCustomScheme when internal updater is disabled
Browse files Browse the repository at this point in the history
Closes: telegramdesktop#5118
Signed-off-by: Henning Schild <henning@hennsch.de>
  • Loading branch information
henning-schild authored and kiku-jw committed Feb 11, 2019
1 parent c00c054 commit 0fdbb72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Telegram/SourceFiles/platform/linux/specific_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ For license and copyright information please follow this link:
#include "platform/platform_notifications_manager.h"
#include "storage/localstorage.h"
#include "core/crash_reports.h"
#include "core/update_checker.h"

#include <sys/stat.h>
#include <sys/types.h>
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 0fdbb72

Please sign in to comment.