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:
parent
31357486b0
commit
40ab43ae98
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue