From dad1f196bae3a24c44656a03141f6d9c2baa95c5 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 26 Dec 2021 11:15:29 -0700 Subject: [PATCH] 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. --- lib/xdg/telegramdesktop.desktop | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/xdg/telegramdesktop.desktop b/lib/xdg/telegramdesktop.desktop index c34d07c80..ad5f0ee45 100644 --- a/lib/xdg/telegramdesktop.desktop +++ b/lib/xdg/telegramdesktop.desktop @@ -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