From 4aceb9b0ac8895a036d709a867edb4240106cc55 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Sun, 22 May 2022 20:53:34 +0200 Subject: [PATCH] adding notification when download begins --- youtube-dl-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube-dl-install.sh b/youtube-dl-install.sh index 1a6e581..db13b4b 100644 --- a/youtube-dl-install.sh +++ b/youtube-dl-install.sh @@ -104,7 +104,8 @@ youtubedlbinary="$HOME/bin/yt-dlp" cd $dir url=$(zenity --width 500 --entry --title "url à télécharger") -$youtubedlbinary $url +$youtubedlbinary $url & +notify-send -i ~/.icons/youtube.png "yt-dlp" "Téléchargement commencé ($url)" if [ "$?" != "0" ]; then echo "Erreur, le script va s'arreter." notify-send -i ~/.icons/youtube.png "yt-dlp erreur" "Une erreur est survenue dans le téléchargement de $url"