summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-03 15:22:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-03 15:23:36 -0400
commitc609e2fef9645f9e5a280915952c42b9685d7523 (patch)
treed1fc75699e0ee667bc0307382c9a49ddbe6b6b0a /docs
parentc88dc98b7c2cc3c64569055770108a4bbc997a04 (diff)
downloadgtk+-c609e2fef9645f9e5a280915952c42b9685d7523.tar.gz
docs: Improve the gtk4-launch man page
Be more precise about where desktop files are found. Fixes: #4081
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/gtk4-launch.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/reference/gtk/gtk4-launch.xml b/docs/reference/gtk/gtk4-launch.xml
index aeb5e8dca1..8ee32141a0 100644
--- a/docs/reference/gtk/gtk4-launch.xml
+++ b/docs/reference/gtk/gtk4-launch.xml
@@ -46,7 +46,8 @@ display, unless specified otherwise.
<para>
<command>gtk4-launch</command> takes at least one argument, the name of
the application to launch. The name should match application desktop file name,
-as residing in /usr/share/application, with or without the '.desktop' suffix.
+as residing in the applications subdirectories of the XDG data directories, with
+or without the '.desktop' suffix.
</para>
<para>
If called with more than one argument, the rest of them besides the application
@@ -71,4 +72,14 @@ application.
</variablelist>
</refsect1>
+<refsect1><title>Environment</title>
+ <para>Some environment variables affect the behavior of <command>gtk4-launch</command>.</para>
+ <variablelist>
+ <varlistentry>
+ <term><option>XDG_DATA_HOME</option>, <option>XDG_DATA_DIRS</option></term>
+ <listitem><para>The environment variables specifying the XDG dta directories.</para></listitem>
+ </varlistentry>
+ </variablelist>
+</refsect1>
+
</refentry>