Skip to content

Telegram replaces the launcher desktop file with a weirly named one on linux #25718

@mrmeszaros

Description

@mrmeszaros

Steps to reproduce

  1. Create a desktop file manually, e.g.: ~/.local/share/applications/telegramdesktop.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop application for the Telegram messaging service
TryExec=/home/vagrant/.local/share/TelegramDesktop/Telegram
Exec=/home/vagrant/.local/share/TelegramDesktop/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
  1. Install Telegram
  2. Launch Telegram
  3. Inspect the ~/.local/share/applications folder for the desktop launcher file (replaced)

Expected behaviour

Telegram should not replace the launcher file.

If if must, then it should use a name that does not contain a 32 character hexa identifier.

Actual behaviour

After the first launch, telegramdesktop.desktop gets replaced with org.telegram.desktop._<32LONG_HEX>.desktop.

It even says it in the ~/.local/share/TelegramDesktop/log.txt

If I rename the desktop file to something, then the dock icon for the application breaks.

Operating system

Ubuntu 22.04, GNOME

Version of Telegram Desktop

4.5.3

Installation source

Static binary from official website

Logs

...
[2023.01.11 15:02:27] Executable path before check: /home/vagrant/.local/share/TelegramDesktop/Telegram
[2023.01.11 15:02:27] Logs started
[2023.01.11 15:02:27] Launcher filename: org.telegram.desktop._102e2be7fdb48dfc5164611f2f7fd6af.desktop
[2023.01.11 15:02:27] Connecting local socket to /tmp/9b4389f2b23f460fe40f59f288370d39-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2023.01.11 15:02:27] This is the only instance of Telegram, starting server and app...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions