Skip to content

Commit

Permalink
Merge pull request #1101 from Enzime/quiet-pgrep
Browse files Browse the repository at this point in the history
defaults: don't output Dock PID
  • Loading branch information
emilazy authored Oct 14, 2024
2 parents fd0e3ed + d32e6de commit ccf8cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/defaults-write.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccf8cc5

Please sign in to comment.