Permissions on mesh desktop notifications
This commit is contained in:
parent
89c278d80e
commit
4a4a9f84ca
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue