swayidle: fix systemd service
swayidle executes commands using "sh -c" and so its PATH must contain a shell. This adds such PATH entry to the environment of the systemd service. Fixes #2811.
This commit is contained in:
parent
6311f4adc3
commit
43ea4c5123
2 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,9 @@
|
|||
|
||||
assertFileExists $serviceFile
|
||||
assertFileRegex $serviceFile 'ExecStart=.*/bin/swayidle ${expectedArgs}'
|
||||
assertFileRegex $serviceFile 'Environment=.*PATH=${
|
||||
lib.makeBinPath [ pkgs.bash ]
|
||||
}'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue