Commit 3078ed73 authored by Mikhail Tergoev's avatar Mikhail Tergoev

minor changes

parent c94136c9
...@@ -116,7 +116,7 @@ try_download () { ...@@ -116,7 +116,7 @@ try_download () {
PW_DOWNLOAD_FILE_NAME="$(basename $1)" PW_DOWNLOAD_FILE_NAME="$(basename $1)"
set -o pipefail set -o pipefail
wget -O "$2" --read-timeout 300 --retry-connrefused --timeout 4 --tries 2 --no-dns-cache --no-cache \ wget -O "$2" --read-timeout 300 --retry-connrefused --timeout 4 --tries 2 --no-dns-cache --no-cache \
--user-agent="Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" "${1}" 2>&1 | \ --user-agent="Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" "$1" 2>&1 | \
tr '\r' '\n' | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9,.]\+.\) \(.*\)/\1\n#Downloading at \1\/, \2\/s, ETA \3/; s/^20[0-9][0-9].*/#Done./' | \ tr '\r' '\n' | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9,.]\+.\) \(.*\)/\1\n#Downloading at \1\/, \2\/s, ETA \3/; s/^20[0-9][0-9].*/#Done./' | \
zenity --progress --percentage=0 --title="Download ${PW_DOWNLOAD_FILE_NAME}" --text=Starting... --auto-close --width=500 --height=90 zenity --progress --percentage=0 --title="Download ${PW_DOWNLOAD_FILE_NAME}" --text=Starting... --auto-close --width=500 --height=90
if [ "${PIPESTATUS[0]}" != 0 ] ; then if [ "${PIPESTATUS[0]}" != 0 ] ; then
...@@ -886,7 +886,7 @@ pw_port_update () { ...@@ -886,7 +886,7 @@ pw_port_update () {
exit 0 exit 0
fi fi
else else
zenity_error_download && pw_scripts_update zenity_error_download && pw_port_update
fi ;; fi ;;
"${scripts_upd5}") "${scripts_upd5}")
echo " " ;; echo " " ;;
......
...@@ -37,7 +37,3 @@ export PW_USE_TERMINAL=0 ...@@ -37,7 +37,3 @@ export PW_USE_TERMINAL=0
export PW_GUI_DISABLED_CS=0 export PW_GUI_DISABLED_CS=0
##export PATH_TO_GAME= ##export PATH_TO_GAME=
##add_in_start_portwine () { commands ; } ##add_in_start_portwine () { commands ; }
export PW_MANGOHUD=1
export PW_USE_RUNTIME=1
export PW_USE_GAMEMODE=1
export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt,fps_limit=60
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment