From 4de3f59774b7afeaa6a70d6f072aeb5e5e1222f0 Mon Sep 17 00:00:00 2001 From: Simran Singh Date: Sun, 3 May 2026 00:22:10 +0530 Subject: [PATCH] man: EnvironmentFile= honors %h, not \$HOME --- man/systemd.exec.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 809cc285fd..6524ba631a 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -3294,6 +3294,10 @@ SystemCallErrorNumber=EPERM If the empty string is assigned to this option, the list of files to read is reset, all prior assignments have no effect. + Note that shell variables such as $HOME are not expanded in this path. + Use %-specifiers instead; for example, %h expands to the + user's home directory. + 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