notify-send messages updated
This commit is contained in:
parent
324794c7a5
commit
7ba9c90159
|
@ -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"
|
||||
|
|
|
@ -199,25 +199,23 @@ 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"
|
||||
fi
|
||||
downrez=$?
|
||||
fi
|
||||
if [ "$downrez" -eq 0 ];then
|
||||
notify-send "Illustrator CC" "$4 download completed" -i "download"
|
||||
fi
|
||||
((tout++))
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
function launcher() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue