mirror of https://github.com/procxx/kepka.git
Linux: disable RegisterCustomScheme when internal updater is disabled
Closes: https://github.com/telegramdesktop/tdesktop/issues/5118 Signed-off-by: Henning Schild <henning@hennsch.de>
This commit is contained in:
parent
45c1427f91
commit
5292d75617
|
@ -16,6 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "platform/platform_notifications_manager.h"
|
#include "platform/platform_notifications_manager.h"
|
||||||
#include "storage/localstorage.h"
|
#include "storage/localstorage.h"
|
||||||
#include "core/crash_reports.h"
|
#include "core/crash_reports.h"
|
||||||
|
#include "core/update_checker.h"
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -409,6 +410,8 @@ void RegisterCustomScheme() {
|
||||||
#ifndef TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
|
#ifndef TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
|
||||||
auto home = getHomeDir();
|
auto home = getHomeDir();
|
||||||
if (home.isEmpty() || cBetaVersion() || cExeName().isEmpty()) return; // don't update desktop file for beta version
|
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
|
#ifndef TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION
|
||||||
DEBUG_LOG(("App Info: placing .desktop file"));
|
DEBUG_LOG(("App Info: placing .desktop file"));
|
||||||
|
|
Loading…
Reference in New Issue