1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

home-manager: ignore errors from notify-send

Fixes #3878
This commit is contained in:
Robert Helgesson 2023-04-17 00:46:17 +02:00
parent 21ca88f3a9
commit d1d0ee37c3
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -527,7 +527,7 @@ function presentNews() {
echo $'\n'"$msg"$'\n' >&2
if [[ -v DISPLAY ]] && type -P notify-send > /dev/null; then
notify-send "Home Manager" "$msg"
notify-send "Home Manager" "$msg" > /dev/null 2>&1 || true
fi
elif [[ "$newsDisplay" == "show" ]]; then
doShowNews --unread