From 2acb48c3a40847bce04d78fcfb336c299d85792cac5f9c46e5d614415e8f6ca9 Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Wed, 26 Jun 2019 18:24:31 +0000 Subject: [PATCH] Accepting request 712167 from home:nuklly:branches:server:messaging Added GTK integration support to support native notification popup. OBS-URL: https://build.opensuse.org/request/show/712167 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=90 --- patch.py | 3 ++- telegram-desktop.spec | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/patch.py b/patch.py index 577964e..3dd7e0f 100644 --- a/patch.py +++ b/patch.py @@ -269,7 +269,8 @@ def process_telegram(jsonobj): child.append("'TDESKTOP_DISABLE_AUTOUPDATE'") child.append("'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME'") child.append("'TDESKTOP_DISABLE_UNITY_INTEGRATION'") - child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") + # Turn on GTK support by default + # child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") child.append("'TDESKTOP_DISABLE_OPENAL_EFFECTS'") child.remove("'AL_LIBTYPE_STATIC'") child = jsonobj["'targets'"][0]["'include_dirs'"] diff --git a/telegram-desktop.spec b/telegram-desktop.spec index b86aea0..34e1e7c 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -191,6 +191,9 @@ cp %{_sourcedir}/tdesktop.patch %{_builddir}/tdesktop-%{version} cd %{_builddir}/tdesktop-%{version} %patch0 -p1 +# Add TDESKTOP_DISABLE_GTK_INTEGRATION in file_utilties_linux.h +sed -i "1s/^/#define TDESKTOP_DISABLE_GTK_INTEGRATION\n\n/" Telegram/SourceFiles/platform/linux/file_utilities_linux.h + cp %{_sourcedir}/patch.py . && python3 ./patch.py cp %{_sourcedir}/catch.hpp ./Telegram/SourceFiles/