summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Grulich <jgrulich@redhat.com>2019-10-21 16:00:32 +0200
committerBastien Nocera <hadess@hadess.net>2020-04-27 17:09:02 +0200
commit6eb7cfc0586d4eec3b856799007bf82aca6989a1 (patch)
treeac9e81d20d1be437e34c0775eea3d858d8207b15
parent400203394d5c3d350a1caabf39d2dcf0f4cb5e40 (diff)
desktop-entry-spec: add PrefersNonDefaultGPU entry
This new key tells a launcher to do what it can to run an application on the “non-default” GPU when available, usually a a more powerful discrete GPU. It's a standardisation of KDE's X-KDE-RunOnDiscreteGpu key.
-rw-r--r--desktop-entry/desktop-entry-spec.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml
index f3516bc..38677e2 100644
--- a/desktop-entry/desktop-entry-spec.xml
+++ b/desktop-entry/desktop-entry-spec.xml
@@ -768,6 +768,19 @@
<entry>YES</entry>
<entry>2</entry>
</row>
+ <row>
+ <entry id="key-prefersnondefaultgpu"><varname>PrefersNonDefaultGPU</varname></entry>
+ <entry>
+ If true, the application prefers to be run on a more powerful discrete GPU if available,
+ which we describe as “a GPU other than the default one” in this spec to avoid the need
+ to define what a discrete GPU is and in which cases it might be considered more powerful
+ than the default GPU.
+ 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>
@@ -1657,6 +1670,12 @@ Icon=fooview-new
<appendix>
<title>Changes to this Specification</title>
<section>
+ <title>Changes from version 1.3 to 1.4</title>
+ <para>
+ Add PrefersNonDefaultGPU key.
+ </para>
+ </section>
+ <section>
<title>Changes from version 1.2 to 1.3</title>
<para>
New type "iconstring", similar to "localestring" but not user-displayable.