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 exit 1
fi fi
notify-send "Illustrator CC started." -i "illustratoricon" notify-send "Illustrator CC" "Illustrator CC launched." -i "illustratoricon"
SCR_PATH="aipath" SCR_PATH="aipath"
CACHE_PATH="aicache" CACHE_PATH="aicache"

View File

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

View File

@ -7,7 +7,7 @@ main() {
CMD_PATH="/usr/local/bin/illustrator" CMD_PATH="/usr/local/bin/illustrator"
ENTRY_PATH="/home/$USER/.local/share/applications/illustratorCC.desktop" 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" ask_question "you are uninstalling illustrator cc are you sure?" "N"
if [ $result == "no" ];then if [ $result == "no" ];then