mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-26 11:13:18 +02:00
Telegram is a single-instance app; attempting to open a second instance fails and simply focuses the existing instance. However the app's .desktop file does not indicate this to Linux desktop shells like GNOME and KDE Plasma, causing them to show a "Start new instance/Open new window" action for the app that will not work when used. This commit fixes that by setting `X-GNOME-SingleWindow=true` in the desktop file. This is a GNOME-specific key, but it is honored in KDE Plasma too.
21 lines
531 B
Desktop File
21 lines
531 B
Desktop File
[Desktop Entry]
|
|
Version=1.0
|
|
Name=Telegram Desktop
|
|
Comment=Official desktop version of Telegram messaging app
|
|
TryExec=telegram-desktop
|
|
Exec=telegram-desktop -- %u
|
|
Icon=telegram
|
|
Terminal=false
|
|
StartupWMClass=TelegramDesktop
|
|
Type=Application
|
|
Categories=Chat;Network;InstantMessaging;Qt;
|
|
MimeType=x-scheme-handler/tg;
|
|
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
|
|
Actions=Quit;
|
|
X-GNOME-UsesNotifications=true
|
|
X-GNOME-SingleWindow=true
|
|
|
|
[Desktop Action Quit]
|
|
Exec=telegram-desktop -quit
|
|
Name=Quit Telegram
|
|
Icon=application-exit
|