Skip to content
Snippets Groups Projects
Unverified Commit 4a4a9f84 authored by Bob Mottram's avatar Bob Mottram
Browse files

Permissions on mesh desktop notifications

parent 89c278d8
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment