Skip to content

Commit

Permalink
notify-send messages updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Gictorbit committed Jan 10, 2021
1 parent 324794c commit 7ba9c90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 7 additions & 9 deletions scripts/sharedFuncs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ba9c90

Please sign in to comment.