summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <nate@kde.org>2021-12-26 08:23:38 -0700
committerNate Graham <nate@kde.org>2022-01-02 13:14:16 -0700
commit3ea3bc26e24f252eb96f4bfdd525cf4f314330c4 (patch)
tree261e62385c99bec598f4ca8d85d8f46955276f17
parent4dd72869469f1bf866b8c5855debc6f1108e8052 (diff)
desktop-entry-spec: Add "SingleMainWindow" key
This is an upstreaming of the GNOME-specific X-GNOME-SingleWindow key, which functions as the same thing, signaling that an app only supports having a single one of its main window open. We recently added support for apps with that key in KDE [1] and thought it would be useful to upstream (with a slightly more accurate name, since technically single-instance apps can open multiple windows) so that everyone could benefit from the same thing. [1] https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1309
-rw-r--r--desktop-entry/desktop-entry-spec.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml
index 1d3c606..c993f56 100644
--- a/desktop-entry/desktop-entry-spec.xml
+++ b/desktop-entry/desktop-entry-spec.xml
@@ -781,6 +781,18 @@
<entry>NO</entry>
<entry>1</entry>
</row>
+ <row>
+ <entry id="key-singlemainwindow"><varname>SingleMainWindow</varname></entry>
+ <entry>
+ If true, the application has a single main window, and does not support having an
+ additional one opened. This key is used to signal to the implementation to avoid
+ offering a UI to launch another window of the app.
+ This key is only a hint and support might not be present depending on the implementation.
+ </entry>
+ <entry>boolean</entry>
+ <entry>NO</entry>
+ <entry>1</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -1684,6 +1696,12 @@ Icon=fooview-new
<appendix>
<title>Changes to this Specification</title>
<section>
+ <title>Changes from version 1.4 to 1.5</title>
+ <para>
+ Add SingleMainWindow key.
+ </para>
+ </section>
+ <section>
<title>Changes from version 1.3 to 1.4</title>
<para>
Add PrefersNonDefaultGPU key.