Mark as single-instance using X-GNOME-SingleWindow key

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.
This commit is contained in:
Nate Graham 2021-12-26 11:15:29 -07:00 committed by John Preston
parent 8aa2f56717
commit dad1f196ba
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ 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