###Scripts version 2070###
This commit is contained in:
@ -160,7 +160,11 @@ try_download_silent () {
|
||||
|
||||
zenity_error_download () {
|
||||
`zenity --error --title "Error..." --text "You will need to check internet connection,\nand press OK for repeat download" --no-wrap `
|
||||
[ "$?" != 0 ] && exit 1 || return 0
|
||||
if [[ "$?" != 0 ]] ; then
|
||||
stop_portwine
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
create_new_dir () {
|
||||
@ -404,8 +408,8 @@ pw_start_progress_bar_block () {
|
||||
}
|
||||
|
||||
pw_stop_progress_bar () {
|
||||
kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" > /dev/null 2>&1
|
||||
kill -s SIGUSR1 "$PW_YAD_PID_PFX_COVER_UI" "$PW_YAD_PID_PROGRESS_BAR_COVER" > /dev/null 2>&1
|
||||
kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" "$PW_YAD_PID_PFX_COVER_UI" \
|
||||
"$PW_YAD_PID_PROGRESS_BAR_COVER" > /dev/null 2>&1
|
||||
return 0
|
||||
}
|
||||
export -f pw_stop_progress_bar
|
||||
@ -480,7 +484,7 @@ stop_portwine () {
|
||||
kill -s SIGUSR1 "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`"
|
||||
fi
|
||||
add_in_stop_portwine > /dev/null 2>&1
|
||||
kill -n 9 `pgrep -a start.sh | grep '/PortProton/' | awk '{print $1}'` > /dev/null 2>&1
|
||||
kill -n 9 `pgrep -a start.sh | grep -i '/PortProton/' | awk '{print $1}'` > /dev/null 2>&1
|
||||
exit 0
|
||||
}
|
||||
export -f stop_portwine
|
||||
|
Reference in New Issue
Block a user