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 = { Service = {
Environment = "PATH=${makeBinPath [ cfg.package ]}";
ExecStart = "${cfg.package}/bin/foot --server"; ExecStart = "${cfg.package}/bin/foot --server";
Restart = "on-failure"; Restart = "on-failure";
OOMPolicy = "continue"; OOMPolicy = "continue";

View file

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