Notify dependency

This commit is contained in:
Bob Mottram 2016-08-03 15:44:59 +01:00
parent e833123ecd
commit f8b2226110
2 changed files with 455 additions and 452 deletions

View File

@ -643,6 +643,9 @@ function configure_user_interface {
# for tox video
chroot "$rootdir" apt-get -y install ffmpeg cheese v4l-utils
# to provide notifications
chroot "$rootdir" apt-get -y install libnotify-bin
if [[ $VARIANT != "usb" ]]; then
# log in automatically
chroot "$rootdir" apt-get -y install nodm xinit

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 $"$PROJECT_NAME mesh" $"$toxuser has joined the mesh" --icon=dialog-information
notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
fi
fi
done < "$CURRENT_USERS_FILE"