From ec42b5fab55c985e2bd3ed686d0b493de70045ad Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Sun, 29 Sep 2024 21:24:44 +0300 Subject: [PATCH] added support update from gamescope session --- data_from_portwine/scripts/functions_helper | 5 +++-- data_from_portwine/scripts/start.sh | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 58a9d18..135d201 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -473,7 +473,7 @@ try_download () { # If gamescope session is active, use PW_TERM for downloading if check_gamescope_session ; then - $PW_TERM "echo ; echo ; echo \"Download $filename from ${FIRST_URL[0]}. Please wait...\" \ + $PW_TERM "echo ; echo ; echo \"Downloading: $filename. Please wait...\" \ ; curl -f -# -A 'Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)' -H 'Cache-Control: no-cache, no-store' \ -H 'Pragma: no-cache' -L ${FIRST_URL[@]} -o \"$dest\"" [[ "$?" != 0 ]] && return 1 || return 0 @@ -721,7 +721,8 @@ unpack () { # If gamescope session is active, use PW_TERM for unpack if check_gamescope_session ; then - $PW_TERM "echo ; echo ; echo \"Unpacking file: $1. Please wait...\" ; $command -v \"$1\" -C \"$2\"" + yad_info "We wont unpack $1" + $PW_TERM "echo ; echo ; echo \"Unpacking file: $1. Please wait...\" ; $command \"$1\" -C \"$2\"" [[ "$?" != 0 ]] && return 1 || return 0 elif [[ "$silent" != "true" ]] ; then set -o pipefail diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index e13ac8b..d59c84b 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -252,7 +252,9 @@ esac pw_check_and_download_plugins # check skip update -if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] ; then +if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] \ +|| check_gamescope_session +then pw_port_update PW_FILESYSTEM=$(stat -f -c %T "${PORT_WINE_PATH}")