mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
8a160f01ab
`pgrep -x somecommand` exits with a non-zero status if it finds no process running with the given name. When using home-manager as a NixOS module, on boot (when sway isn't running) this script would fail and then fail the unit since it seems the onChange scripts are running with the -e switch. This change ensures we're always returning a 0 exit status where we attempt to get the pid of sway - we're only interested in either the pid or an empty string, the exit status isn't important. |
||
---|---|---|
.. | ||
accounts | ||
lib | ||
lib-bash | ||
misc | ||
programs | ||
services | ||
targets | ||
default.nix | ||
files.nix | ||
home-environment.nix | ||
manual.nix | ||
modules.nix | ||
systemd-activate.rb | ||
systemd-activate.sh | ||
systemd.nix | ||
xcursor.nix | ||
xresources.nix | ||
xsession.nix |