1
0

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
This commit is contained in:
Xu Zhao 2019-06-26 18:24:31 +00:00 committed by Git OBS Bridge
parent 2d03fab865
commit 2acb48c3a4
2 changed files with 5 additions and 1 deletions

View File

@ -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'"]

View File

@ -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/