foot: set PATH in server's systemd unit file

If not set, foot's terminal spawning shortcut will not work as the
`footclient` binary is not on the server's PATH.
This commit is contained in:
Bryn Edwards 2024-04-13 07:27:43 +01:00 committed by GitHub
parent 31357486b0
commit 40ab43ae98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ in {
};
Service = {
Environment = "PATH=${makeBinPath [ cfg.package ]}";
ExecStart = "${cfg.package}/bin/foot --server";
Restart = "on-failure";
OOMPolicy = "continue";

View File

@ -2,6 +2,7 @@
WantedBy=graphical-session.target
[Service]
Environment=PATH=@foot@/bin
ExecStart=@foot@/bin/foot --server
OOMPolicy=continue
Restart=on-failure