From 9f6f7f7c9bb516009ff629e3dd302cb27967a10a Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 21 Mar 2021 08:19:56 +0400 Subject: [PATCH] Fix build without dbus --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index f6b53fadf6..c52eef5f8a 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -754,10 +754,12 @@ void InstallLauncher(bool force) { void RegisterCustomScheme(bool force) { try { +#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION if (InSnap()) { SnapDefaultHandler(qsl("tg")); return; } +#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION if (cExeName().isEmpty()) { return;