Permissions on mesh desktop notifications

This commit is contained in:
Bob Mottram 2016-08-03 23:05:47 +01:00
parent 89c278d80e
commit 4a4a9f84ca
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 1 additions and 1 deletions

View File

@ -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"