From 5dc78222f64c37824126b58c16e2e2421c52b172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= <153805936+Cheviiot@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:43:37 +1000 Subject: [PATCH] fix(telegram-desktop): point Exec at the real binary to stop duplicate launcher icons Telegram's own Linux runtime checks whether the installed .desktop file's Exec matches its actual binary path, and silently writes a private copy to ~/.local/share/applications with a randomized name whenever it doesn't. Our desktop entry pointed at the /usr/bin/telegram-desktop symlink, which never matched /opt/telegram-desktop/Telegram, so Telegram regenerated a shadow launcher on every start, producing a second, unmatched icon. Exec/TryExec now point directly at the installed binary so Telegram's own check finds a match. Bumped release and updated the checksum for the changed desktop file. --- telegram-desktop/Staplerfile | 4 ++-- telegram-desktop/org.telegram.desktop.desktop | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/telegram-desktop/Staplerfile b/telegram-desktop/Staplerfile index 376738e..19a354d 100644 --- a/telegram-desktop/Staplerfile +++ b/telegram-desktop/Staplerfile @@ -1,6 +1,6 @@ name='telegram-desktop' version='7.0.5' -release=1 +release=2 summary='Official Telegram messaging client' summary_ru='Официальный клиент мессенджера Telegram' group='Networking/Instant messaging' @@ -46,7 +46,7 @@ sources=( checksums=( 'sha256:37e23ce08333340504623042120b826f7a2a5650c831187219ab9c520740eb42' - 'sha256:8ceb3f6aea1003f84f1b5757cd857f8237b294bb18456e5e0e54d96e6fff04ba' + 'sha256:bf4db283db2b5706498646393c8853e56b41dee6ac14f18611041a8512eaf286' 'sha256:3fb1400c7dc9bbc3b5cb3ffedcbf4a9b09c53e28b57a7ff33a8a6b9048864090' 'sha256:f3ad1b5ecdc1c9e5ab3719a0b084a3e0b4fc87ad424fbf81043df9637be3d1f5' ) diff --git a/telegram-desktop/org.telegram.desktop.desktop b/telegram-desktop/org.telegram.desktop.desktop index 08bdbb8..0a3d84c 100644 --- a/telegram-desktop/org.telegram.desktop.desktop +++ b/telegram-desktop/org.telegram.desktop.desktop @@ -1,8 +1,8 @@ [Desktop Entry] Name=Telegram Comment=New era of messaging -TryExec=telegram-desktop -Exec=telegram-desktop -- %U +TryExec=/opt/telegram-desktop/Telegram +Exec=/opt/telegram-desktop/Telegram -- %U Icon=org.telegram.desktop Terminal=false StartupWMClass=TelegramDesktop @@ -17,6 +17,6 @@ X-GNOME-UsesNotifications=true X-GNOME-SingleWindow=true [Desktop Action quit] -Exec=telegram-desktop -quit +Exec=/opt/telegram-desktop/Telegram -quit Name=Quit Telegram Icon=application-exit