void-packages/srcpkgs/telegram-desktop/patches/fix-xdg.patch

42 lines
1.3 KiB
Diff

diff --git a/lib/xdg/telegramdesktop.appdata.xml lib/xdg/telegramdesktop.appdata.xml
index 7bcf8d8..4508c01 100644
--- a/lib/xdg/telegramdesktop.appdata.xml
+++ lib/xdg/telegramdesktop.appdata.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
- <id>org.telegram.desktop</id>
+ <id>telegram-desktop.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>Telegram Desktop</name>
diff --git a/lib/xdg/telegramdesktop.desktop lib/xdg/telegramdesktop.desktop
index 0a80695..550b9f7 100644
--- a/lib/xdg/telegramdesktop.desktop
+++ lib/xdg/telegramdesktop.desktop
@@ -1,9 +1,11 @@
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
+GenericName=Telegram Desktop
+Keywords=IM;Chat;
Comment=Official desktop version of Telegram messaging app
-Exec=telegram-desktop -- %u
-Icon=telegram
+Exec=env QT_QPA_PLATFORMTHEME= SESSION_MANAGER= Telegram -externalupdater -- %u
+Icon=telegram-desktop
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
diff --git a/lib/xdg/tg.protocol lib/xdg/tg.protocol
index 0a80695..550b9f7 100644
--- a/lib/xdg/tg.protocol
+++ lib/xdg/tg.protocol
@@ -1,5 +1,5 @@
[Protocol]
-exec=/usr/bin/telegram-desktop -- %u
+exec=Telegram -- %u
protocol=tg
input=none
output=none