From 39fdca21cdb06c6b362617eaad3f43806b88e2e6 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Thu, 14 Mar 2019 09:23:39 +0100 Subject: [PATCH] dsnap-sync: correct handling multiple users while using notify Signed-off-by: Ralf Zerres --- bin/dsnap-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"