summaryrefslogtreecommitdiff
path: root/doc/flatpak-metadata.xml
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-11-17 10:51:26 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-11-17 23:42:49 +0000
commit5bbdb0628ec90be928a473e2f52ad392c74ab25e (patch)
tree0ff37887d22e3481355b3eb3a51ce6d3f0a9e303 /doc/flatpak-metadata.xml
parent182b2674aa6dc00d0c0780baf2d794bf765a925b (diff)
downloadflatpak-5bbdb0628ec90be928a473e2f52ad392c74ab25e.tar.gz
doc: Update download-if/enable-if docs
Closes: #1436 Approved by: matthiasclasen
Diffstat (limited to 'doc/flatpak-metadata.xml')
-rw-r--r--doc/flatpak-metadata.xml53
1 files changed, 42 insertions, 11 deletions
diff --git a/doc/flatpak-metadata.xml b/doc/flatpak-metadata.xml
index fdf4aa3f..8670b4c9 100644
--- a/doc/flatpak-metadata.xml
+++ b/doc/flatpak-metadata.xml
@@ -678,13 +678,46 @@
</varlistentry>
<varlistentry>
<term><option>download-if</option> (string)</term>
- <listitem><para>
- A condition that must be true for the extension to be auto-downloaded.
- The only currently recognized value is active-gl-driver, which is true
- if the name of the active GL driver matches the extension point basename.
- Available since 0.9.1, and backported to the 0.8.x
- branch in 0.8.3.
- </para></listitem>
+ <listitem>
+ <para>
+ A condition that must be true for the extension to be auto-downloaded.
+ As of 1.1.1 this supports multiple conditions separated by semi-colons.
+ </para>
+ <para>
+ These are the supported conditions:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><option>active-gl-driver</option></term>
+ <para>
+ Is true if the name of the active GL driver matches the
+ extension point basename. Available since 0.9.1, and backported to
+ the 0.8.x branch in 0.8.3.
+ </para>
+ </varlistentry>
+ <varlistentry>
+ <term><option>active-gtk-theme</option></term>
+ <para>
+ Is true if the name of the current GTK theme
+ (via org.gnome.desktop.interface GSetting) matches the extension point
+ basename. Added 0.10.1.
+ </para>
+ </varlistentry>
+ <varlistentry>
+ <term><option>have-intel-gpu</option></term>
+ <para>Is true if the i915 kernel module is loaded. Added 0.10.1.</para>
+ </varlistentry>
+ <varlistentry>
+ <term><option>on-xdg-desktop-*</option></term>
+ <para>
+ Is true if the suffix (case-insensitively) is in the
+ <literal>XDG_CURRENT_DESKTOP</literal> env var.
+ For example <literal>on-xdg-desktop-GNOME-classic</literal>.
+ Added 1.1.1.
+ </para>
+ </varlistentry>
+ </variablelist>
+ </listitem>
</varlistentry>
<varlistentry>
<term><option>autoprune-unless</option> (string)</term>
@@ -700,10 +733,8 @@
<term><option>enable-if</option> (string)</term>
<listitem><para>
A condition that must be true for the extension to be enabled.
- The only currently recognized value is active-gl-driver, which is true
- if the name of the active GL driver matches the extension point basename.
- Available since 0.9.1, and backported to the 0.8.x
- branch in 0.8.3.
+ As of 1.1.1 this supports multiple conditions separated by semi-colons.
+ See <option>download-if</option> for available conditions.
</para></listitem>
</varlistentry>
<varlistentry>