summaryrefslogtreecommitdiffstats
path: root/man/systemd.unit.xml
diff options
context:
space:
mode:
authorAdrian Vovk <adrianvovk@gmail.com>2023-12-29 00:12:06 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-05 11:03:06 +0100
commitcc51085a416b623d891b60b2dc8e885f7e5beeec (patch)
treea0f146d5ae2c650869ff420c525a2db415bb956b /man/systemd.unit.xml
parentnetwork: do not make the implied default have the first priority (diff)
downloadsystemd-cc51085a416b623d891b60b2dc8e885f7e5beeec.tar.xz
systemd-cc51085a416b623d891b60b2dc8e885f7e5beeec.zip
core: Add %D specifier for $XDG_DATA_HOME
We already have specifiers that resolve to $XDG_STATE_HOME, and $XDG_CONFIG_HOME. $XDG_DATA_HOME is in a similar vein. It allows units belonging to the user service manager to correctly look into ~/.local/share. I imagine this would be most useful inside of condition checks (i.e. only run a service on session startup if some data is not found in ~/.local/share) or in the inotify monitoring of a .path unit
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r--man/systemd.unit.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index c447cd0638..f7a6af7059 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -2303,6 +2303,11 @@
<entry>This is the value of the <literal>$CREDENTIALS_DIRECTORY</literal> environment variable if available. See section "Credentials" in <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
</row>
<row>
+ <entry><literal>%D</literal></entry>
+ <entry>Shared data directory</entry>
+ <entry>This is either <filename>/usr/share/</filename> (for the system manager) or the path <literal>$XDG_DATA_HOME</literal> resolves to (for user managers).</entry>
+ </row>
+ <row>
<entry><literal>%E</literal></entry>
<entry>Configuration directory root</entry>
<entry>This is either <filename>/etc/</filename> (for the system manager) or the path <literal>$XDG_CONFIG_HOME</literal> resolves to (for user managers).</entry>