]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: EnvironmentFile= honors %h, not \$HOME
authorSimran Singh <simsingh@redhat.com>
Sat, 2 May 2026 18:52:10 +0000 (00:22 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 May 2026 15:31:16 +0000 (17:31 +0200)
man/systemd.exec.xml

index 809cc285fdce10332ad0be69b11ac9ca893af6f3..6524ba631a7cc5279ec223910dddc458afd0e1eb 100644 (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