From b8ce61ca1fc7f325f0ffb091d1a1ee05382c1e09 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Wed, 17 Jan 2018 17:49:13 +0100 Subject: [PATCH] Replaced old name from shortcuts and metadata package. Signed-off-by: Vitaly Zaitsev --- kepka.spec | 3 +-- ...elegramdesktop.appdata.xml => kepka.appdata.xml} | 0 lib/xdg/kepka.desktop | 13 +++++++++++++ lib/xdg/telegramdesktop.desktop | 13 ------------- lib/xdg/tg.protocol | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) rename lib/xdg/{telegramdesktop.appdata.xml => kepka.appdata.xml} (100%) create mode 100644 lib/xdg/kepka.desktop delete mode 100644 lib/xdg/telegramdesktop.desktop diff --git a/kepka.spec b/kepka.spec index 2bf9db916..083a73998 100644 --- a/kepka.spec +++ b/kepka.spec @@ -76,7 +76,6 @@ mkdir -p "%{buildroot}%{_bindir}" install -m 0755 -p %{_target_platform}/Telegram/Telegram "%{buildroot}%{_bindir}/%{name}" # Installing desktop shortcut... -mv lib/xdg/telegramdesktop.desktop lib/xdg/%{name}.desktop desktop-file-install --dir="%{buildroot}%{_datadir}/applications" lib/xdg/%{name}.desktop # Installing icons... @@ -88,7 +87,7 @@ done # Installing appdata for Gnome Software... install -d "%{buildroot}%{_datadir}/metainfo" -install -m 0644 -p lib/xdg/telegramdesktop.appdata.xml "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml" +install -m 0644 -p lib/xdg/%{name}.appdata.xml "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml" %check appstream-util validate-relax --nonet "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml" diff --git a/lib/xdg/telegramdesktop.appdata.xml b/lib/xdg/kepka.appdata.xml similarity index 100% rename from lib/xdg/telegramdesktop.appdata.xml rename to lib/xdg/kepka.appdata.xml diff --git a/lib/xdg/kepka.desktop b/lib/xdg/kepka.desktop new file mode 100644 index 000000000..3543ccca4 --- /dev/null +++ b/lib/xdg/kepka.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Name=Kepka +GenericName=Kepka +Keywords=IM;Chat; +Comment=Unofficial Telegram desktop messaging app +Exec=/usr/bin/kepka -- %u +Icon=kepka +Terminal=false +StartupWMClass=Kepka +Type=Application +Categories=Network;InstantMessaging;Qt; +MimeType=x-scheme-handler/tg; diff --git a/lib/xdg/telegramdesktop.desktop b/lib/xdg/telegramdesktop.desktop deleted file mode 100644 index 550b9f785..000000000 --- a/lib/xdg/telegramdesktop.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=Telegram Desktop -GenericName=Telegram Desktop -Keywords=IM;Chat; -Comment=Official desktop version of Telegram messaging app -Exec=/usr/bin/telegram-desktop -- %u -Icon=telegram-desktop -Terminal=false -StartupWMClass=TelegramDesktop -Type=Application -Categories=Network;InstantMessaging;Qt; -MimeType=x-scheme-handler/tg; diff --git a/lib/xdg/tg.protocol b/lib/xdg/tg.protocol index a4b083acb..92d2971a3 100644 --- a/lib/xdg/tg.protocol +++ b/lib/xdg/tg.protocol @@ -1,5 +1,5 @@ [Protocol] -exec=/usr/bin/telegram-desktop -- %u +exec=/usr/bin/kepka -- %u protocol=tg input=none output=none