summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsteve Varela Colominas <esteve.varela@gmail.com>2021-04-28 12:58:35 +0200
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-04-28 06:14:59 -0700
commit7ee2b4eb47d30099e87982b282accb6b04e0048b (patch)
treef605a8ad292a97d340cfbc17d4a14ef83c59400c /net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch
parentdev-db/pg_activity: version bump to 2.1.5 - remove old (diff)
downloadgentoo-7ee2b4eb47d30099e87982b282accb6b04e0048b.tar.gz
gentoo-7ee2b4eb47d30099e87982b282accb6b04e0048b.tar.bz2
gentoo-7ee2b4eb47d30099e87982b282accb6b04e0048b.zip
net-im/telegram-desktop: fix USE=-dbus
Thanks-to: Kirill A. Shutemov <kirill@shutemov.name> Closes: https://bugs.gentoo.org/786183 Closes: https://github.com/gentoo/gentoo/pull/20570 Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch')
-rw-r--r--net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch b/net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch
new file mode 100644
index 00000000000..5351a808ec4
--- /dev/null
+++ b/net-im/telegram-desktop/files/tdesktop-2.7.1-fix-disable-dbus-integration.patch
@@ -0,0 +1,17 @@
+Index: tdesktop-2.7.1-full/Telegram/SourceFiles/platform/linux/specific_linux.cpp
+===================================================================
+--- tdesktop-2.7.1-full.orig/Telegram/SourceFiles/platform/linux/specific_linux.cpp
++++ tdesktop-2.7.1-full/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;