diff --git a/bin/dsnap-sync b/bin/dsnap-sync index a04a88a..5163101 100755 --- a/bin/dsnap-sync +++ b/bin/dsnap-sync @@ -874,7 +874,7 @@ get_snapper_sync_id () { notify () { # estimation: batch calls should just log if [ $donotify -gt 0 ]; then - for u in $(users | sed 's/ /\n/' | sort -u); do + for u in $(users | sed 's/ /\n/g' | sort -u); do sudo -u $u DISPLAY=:0 \ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(sudo -u $u id -u)/bus \ notify-send -a $progname "$progname: $1" "$2" --icon="dialog-$3"