notify-send messages updated

This commit is contained in:
victor 2021-01-10 13:10:49 +03:30
parent 324794c7a5
commit 7ba9c90159
3 changed files with 9 additions and 11 deletions

View File

@ -4,7 +4,7 @@ if [ $# -ne 0 ];then
exit 1
fi
notify-send "Illustrator CC started." -i "illustratoricon"
notify-send "Illustrator CC" "Illustrator CC launched." -i "illustratoricon"
SCR_PATH="aipath"
CACHE_PATH="aicache"

View File

@ -199,21 +199,19 @@ function download_component() {
if [ "$ariapkg" == "true" ];then
show_message "using aria2c to download $4"
aria2c -c -x 8 -d "$CACHE_PATH" -o $4 $3
if [ $? -eq 0 ];then
notify-send "$4 download completed" -i "download"
fi
downrez=$?
elif [ "$curlpkg" == "true" ];then
show_message "using curl to download $4"
curl $3 -o $1
downrez=$?
else
show_message "using wget to download $4"
wget "$3" -P "$CACHE_PATH"
if [ $? -eq 0 ];then
notify-send "$4 download completed" -i "download"
downrez=$?
fi
if [ "$downrez" -eq 0 ];then
notify-send "Illustrator CC" "$4 download completed" -i "download"
fi
((tout++))
fi

View File

@ -7,7 +7,7 @@ main() {
CMD_PATH="/usr/local/bin/illustrator"
ENTRY_PATH="/home/$USER/.local/share/applications/illustratorCC.desktop"
notify-send "illustrator uninstaller started" -i "inkscape"
notify-send "Illustrator CC" "illustrator uninstaller started" -i "inkscape"
ask_question "you are uninstalling illustrator cc are you sure?" "N"
if [ $result == "no" ];then