From 4ba58ad39be07571bc68e2579b5daff228128e00 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 3 Jan 2020 11:08:12 +0100 Subject: [PATCH] telegram-desktop: fix binary name in .desktop .protocol and .appdata.xml closes #18000 --- .../patches/0007-xdg-bin.patch | 40 +++++++++++++++++++ srcpkgs/telegram-desktop/template | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/telegram-desktop/patches/0007-xdg-bin.patch diff --git a/srcpkgs/telegram-desktop/patches/0007-xdg-bin.patch b/srcpkgs/telegram-desktop/patches/0007-xdg-bin.patch new file mode 100644 index 00000000000..ca6e117346e --- /dev/null +++ b/srcpkgs/telegram-desktop/patches/0007-xdg-bin.patch @@ -0,0 +1,40 @@ +--- lib/xdg/telegramdesktop.appdata.xml 2019-12-31 16:06:54.000000000 +0100 ++++ - 2020-01-03 11:05:49.315124450 +0100 +@@ -1,6 +1,6 @@ + + +- org.telegram.desktop ++ telegramdesktop.desktop + CC0-1.0 + GPL-3.0 + Telegram Desktop +--- lib/xdg/telegramdesktop.appdata.xml 2019-12-31 16:06:54.000000000 +0100 ++++ - 2020-01-03 11:05:49.315124450 +0100 +@@ -63,6 +63,6 @@ + none + + +- telegram-desktop ++ Telegram + + +--- lib/xdg/telegramdesktop.desktop 2019-12-31 16:06:54.000000000 +0100 ++++ - 2020-01-03 11:06:05.345353255 +0100 +@@ -2,7 +2,7 @@ + Version=1.0 + Name=Telegram Desktop + Comment=Official desktop version of Telegram messaging app +-Exec=telegram-desktop -- %u ++Exec=Telegram -- %u + Icon=telegram + Terminal=false + StartupWMClass=TelegramDesktop +--- lib/xdg/tg.protocol 2019-12-31 16:06:54.000000000 +0100 ++++ - 2020-01-03 11:06:20.712139153 +0100 +@@ -1,5 +1,5 @@ + [Protocol] +-exec=/usr/bin/telegram-desktop -- %u ++exec=Telegram -- %u + protocol=tg + input=none + output=none diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template index 1050a8b1bac..2519560d236 100644 --- a/srcpkgs/telegram-desktop/template +++ b/srcpkgs/telegram-desktop/template @@ -1,7 +1,7 @@ # Template file for 'telegram-desktop' pkgname=telegram-desktop version=1.9.3 -revision=1 +revision=2 wrksrc="tdesktop-${version}-full" build_style=cmake build_helper="qemu"