forked from pool/telegram-desktop
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:
parent
2d03fab865
commit
2acb48c3a4
3
patch.py
3
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'"]
|
||||
|
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user