summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-10-09 21:57:33 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-10-09 21:57:33 +1100
commitd32e6de094e87ba8eeef0be8c5696f7b14365af2 (patch)
treeaf15880e5f90ac7bb495888fb5ef6271d15753d8 /modules/system
parent48b50b3b137be5cfb9f4d006835ce7c3fe558ccc (diff)
defaults: don't output Dock PID
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults-write.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix
index 827a7d3..c109767 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