From 4a4a9f84cac574fa636e51e04cc3cfe7ae98262a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Aug 2016 23:05:47 +0100 Subject: [PATCH] Permissions on mesh desktop notifications --- src/zeronetavahi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index 2659bfa0..71c93408 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -132,7 +132,7 @@ function detect_new_tox_users { # get the nick of the user toxuser="$(echo "$line" | awk -F ' ' '{print $1}')" - notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information + export DISPLAY=:0.0 && export XAUTHORITY=/home/$MESH_USERNAME/.Xauthority && sudo -u MESH_USERNAME /usr/bin/notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information fi fi done < "$CURRENT_USERS_FILE"