From 71e554b1dbc97f17bff529731516175687447a32 Mon Sep 17 00:00:00 2001 From: Fusion future Date: Tue, 4 Jan 2022 06:53:22 +0800 Subject: [PATCH] Add "X-GNOME-SingleWindow=true" to the desktop file (#1572) Since this commit (https://github.com/KDE/plasma-workspace/commit/ebd2acd98ecdb9d115b01bd01f532390376152f7), Plasma Desktop will check "X-GNOME-SingleWindow" property to determine whether to show "Open New Window" action in the context menu of a task. Anki cannot launch a new instance or open a new window, so add the property and set it to true to hide the action. --- qt/package/lin/anki.desktop | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/package/lin/anki.desktop b/qt/package/lin/anki.desktop index 374a4b5df..925fba78a 100644 --- a/qt/package/lin/anki.desktop +++ b/qt/package/lin/anki.desktop @@ -10,3 +10,4 @@ Terminal=false Type=Application Version=1.0 MimeType=application/x-apkg;application/x-anki;application/x-ankiaddon; +X-GNOME-SingleWindow=true