|
@@ -132,7 +132,7 @@ function detect_new_tox_users {
|
132
|
132
|
# get the nick of the user
|
133
|
133
|
toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
|
134
|
134
|
|
135
|
|
- notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
|
|
135
|
+ 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
|
136
|
136
|
fi
|
137
|
137
|
fi
|
138
|
138
|
done < "$CURRENT_USERS_FILE"
|