diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix index 827a7d31..c109767d 100644 --- a/modules/system/defaults-write.nix +++ b/modules/system/defaults-write.nix @@ -113,7 +113,7 @@ in ${optionalString (length dock > 0) '' # Only restart Dock if current user is logged in - if pgrep -xu $UID Dock; then + if pgrep -xu $UID Dock >/dev/null; then echo >&2 "restarting Dock..." killall Dock || true fi