man: EnvironmentFile= honors %h, not \$HOME

This commit is contained in:
Simran Singh
2026-05-05 17:31:16 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 63eb3cf57b
commit 4de3f59774
+4
View File
@@ -3294,6 +3294,10 @@ SystemCallErrorNumber=EPERM</programlisting>
If the empty string is assigned to this option, the list of files to read is reset, all prior assignments
have no effect.</para>
<para>Note that shell variables such as <literal>$HOME</literal> are not expanded in this path.
Use <literal>%</literal>-specifiers instead; for example, <literal>%h</literal> expands to the
user's home directory.</para>
<para>The files listed with this directive will be read shortly before the process is executed (more
specifically, after all processes from a previous unit state terminated. This means you can generate these
files in one unit state, and read it with this option in the next. The files are read from the file