From 38dee000bcff37bec47bb51e7143eaa0370d781d Mon Sep 17 00:00:00 2001 From: "forkline-dev[bot]" Date: Fri, 5 Jun 2026 13:55:03 +0000 Subject: [PATCH] fix: add user directories to PATH in systemd service The systemd user daemon uses a hardcoded PATH that doesn't include user directories like ~/.cargo/bin. This causes the service to fail when the binary is installed via 'make install' (which uses cargo install to ~/.cargo/bin). This fix sets the PATH environment variable to include both system directories and common user installation directories: - Standard system paths (works for AUR and system packages) - %h/.cargo/bin (where 'make install' puts the binary) - %h/.local/bin (another common user installation location) The %h specifier expands to the user's home directory, making this work for all users without modification. Resolves: #277 --- contrib/systemd/passless.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/passless.service b/contrib/systemd/passless.service index f738625..dce7398 100644 --- a/contrib/systemd/passless.service +++ b/contrib/systemd/passless.service @@ -6,6 +6,7 @@ Wants=network-online.target [Service] Type=simple +Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:%h/.cargo/bin:%h/.local/bin ExecStart=passless Restart=on-failure RestartSec=5s