forked from CastroFidel/PortWINE
###Scripts version 2064###
This commit is contained in:
@ -10,10 +10,20 @@ print_error () {
|
||||
echo "ERROR: $@"
|
||||
}
|
||||
|
||||
zenity_error () {
|
||||
echo "ERROR: $@"
|
||||
zenity --error --no-wrap --text "$@" 2> /dev/null
|
||||
}
|
||||
|
||||
print_info () {
|
||||
echo "INFO: $@"
|
||||
}
|
||||
|
||||
zenity_info () {
|
||||
echo "INFO: $@"
|
||||
zenity --info --no-wrap --text "$@" 2> /dev/null
|
||||
}
|
||||
|
||||
print_var () {
|
||||
for vp in $@ ; do echo "${vp}=${!vp}" ; done
|
||||
}
|
||||
@ -350,8 +360,8 @@ pw_update_pfx_cover_gui () {
|
||||
echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
while [[ -f "${PORT_WINE_TMP_PATH}/update_pfx_log" ]] ; do
|
||||
sleep 1
|
||||
while read -r line ; do
|
||||
echo "# ${line}"
|
||||
while read -r gui_line ; do
|
||||
echo "# ${gui_line}"
|
||||
done
|
||||
done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="2" --text-info --tail &
|
||||
"${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="1" --picture --filename="${PW_GIF_FILE}" --image-on-top &
|
||||
@ -555,7 +565,7 @@ pw_check_and_download_plugins () {
|
||||
open_changelog () {
|
||||
"${pw_yad}" --title="Changelog" --borders=10 --no-buttons --text-align=center \
|
||||
--text-info --show-uri --wrap --center --width=1200 --height=550 --uri-color=red \
|
||||
--filename="${PORT_WINE_PATH}/data/changelog"
|
||||
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}"
|
||||
}
|
||||
export -f open_changelog
|
||||
|
||||
@ -669,7 +679,7 @@ pw_port_update () {
|
||||
try_remove_dir "${PORT_WINE_TMP_PATH}/PortWINE-master/"
|
||||
echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver"
|
||||
zenity --title="Changelog" --text-info --width=1200 --height=550 \
|
||||
--filename="${PORT_WINE_PATH}/data/changelog"
|
||||
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}"
|
||||
[ "$?" == 0 ] && /bin/bash -c ${pw_full_command_line[*]} &
|
||||
exit 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user