From 309a5ef47c623037a4b10946e660da984f6698d7 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Tue, 3 Sep 2024 17:04:10 +0500 Subject: [PATCH 1/2] added fixes for Alpine Linux --- data_from_portwine/scripts/functions_helper | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 0d6b49f9..f31e5d2f 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -981,7 +981,7 @@ regdlloverrides () { } wait_wineserver () { - while ls -l /proc/*/exe 2>/dev/null | grep -ie PortProton | grep -E 'wine(64)?-preloader|wineserver' + while ls -l /proc/*/exe >/dev/null 2>&1 | grep -ie PortProton | grep -E 'wine(64)?-preloader|wineserver' do sleep 1 done @@ -992,21 +992,25 @@ export -f wait_wineserver kill_portwine () { if [[ "${PW_WINE_USE}" != "USE_SYSTEM_WINE" ]] ; then - wine_pids="$(ls -l /proc/*/exe 2>/dev/null | grep -ie PortProton | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}')" + wine_pids=$(ls -l /proc/*/exe >/dev/null 2>&1 | grep -ie PortProton | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}') for pw_kill_pids in ${wine_pids} ; do if ps cax | grep "${pw_kill_pids}" ; then kill -n 9 "${pw_kill_pids}" &>/dev/null fi done - bwrap_pids="$(pgrep -a wrap | grep PortProton | head -n 1 | awk '{print $1}')" + if [[ $( grep -oP 'PRETTY_NAME="\K[^"]+' /run/host/etc/os-release) =~ "Alpine Linux" ]] ; then + bwrap_pids=$(pgrep -f wrap | grep PortProton | head -n 1) + else + bwrap_pids="$(pgrep -a wrap | grep PortProton | head -n 1 | awk '{print $1}')" + fi for pw_kill_pids in ${bwrap_pids} ; do if ps cax | grep "${pw_kill_pids}" ; then kill -n 9 "${pw_kill_pids}" &>/dev/null fi done else - wine_pids="$(ls -l /proc/*/exe 2>/dev/null | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}')" + wine_pids=$(ls -l /proc/*/exe >/dev/null 2>&1 | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}') for pw_kill_pids in ${wine_pids} ; do if ps cax | grep "${pw_kill_pids}" ; then kill -n 9 "${pw_kill_pids}" &>/dev/null @@ -2178,7 +2182,7 @@ start_portwine () { if check_gamescope_session ; then export PW_GAMEMODERUN_SLR="" - elif [[ "$PW_USE_GAMEMODE" = "1" ]] ; then + elif [[ "$PW_USE_GAMEMODE" = "1" && ! -z $DBUS_SESSION_BUS_ADDRESS ]] ; then if command -v gamemoded &>/dev/null ; then export GAMEMODERUN=1 PW_GAMEMODERUN_SLR="gamemoderun" @@ -4708,7 +4712,7 @@ resize_png () { if check_flatpak ; then if ! timeout 3 \ - exe-thumbnailer --force-resize -s "$RESIZE_TO" "$(readlink -f "${RESIZE_FILE}")" "${PORT_WINE_PATH}/data/img/${RESIZE_NAME_PNG}.png" 2>/dev/null + exe-thumbnailer --force-resize -s "$RESIZE_TO" "$(readlink -f "${RESIZE_FILE}")" "${PORT_WINE_PATH}/data/img/${RESIZE_NAME_PNG}.png" && [ ! $( grep -oP 'PRETTY_NAME="\K[^"]+' /run/host/etc/os-release) =~ "Alpine Linux" ] then print_error "exe-thumbnailer - broken!" if [[ ! -z $PW_DEBUG ]] ; then From af1d4a6249f9fb7fd3a912289795ace01eeeb7d7 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Wed, 4 Sep 2024 14:06:51 +0300 Subject: [PATCH 2/2] Scripts version 2343 --- data_from_portwine/changelog_en | 9 +++++++++ data_from_portwine/changelog_ru | 4 ++++ data_from_portwine/scripts/functions_helper | 7 +++++-- data_from_portwine/scripts/var | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/data_from_portwine/changelog_en b/data_from_portwine/changelog_en index c6b54f72..d138a6a2 100755 --- a/data_from_portwine/changelog_en +++ b/data_from_portwine/changelog_en @@ -2,6 +2,15 @@ You can help us in the development of the project on the website: https://linux- ---------------------------------------- Changelog: +###Scripts version 2343### / Date: 04.09.2024 / Download update size: 190 megabytes +* updated PROTON_LG to version "9-12" +* updated versions: + * DXVK_GIT "2.4-37" + * VKD3D_GIT "1.1-4167" +* improved support for flatpak version of PortProton for Alpine Linux (thanks to Boria138) +* fixed tray for WM: BSPWM (thanks to Htylol) +* fixed launch of some bat files (thanks to Htylol) + ###Scripts version 2342### / stable / Date: 30.08.2024 / Download update size: 385 megabytes * cumulative update to the stable version of PortProton scripts diff --git a/data_from_portwine/changelog_ru b/data_from_portwine/changelog_ru index a896695e..25ccc373 100755 --- a/data_from_portwine/changelog_ru +++ b/data_from_portwine/changelog_ru @@ -2,10 +2,14 @@ ----------------------------------------- История изменений: +###Scripts version 2343### / Дата: 04.09.2024 / Размер скачиваемого обновления: 190 мегабайт * обновлен PROTON_LG до версии "9-12" * обновлены версии: * DXVK_GIT "2.4-37" * VKD3D_GIT "1.1-4167" +* улучшена поддержка flatpak версии PortProton для Alpine Linux (спасибо Boria138) +* исправлен трей для WM: BSPWM (спасибо Htylol) +* исправлен запуск некоторых bat файлов (спасибо Htylol) ###Scripts version 2342### / stable / Дата: 30.08.2024 / Размер скачиваемого обновления: 385 мегабайт * кумулятивное обновление стабильной версии скриптов PortProton diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 4c94c963..fb648258 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2188,7 +2188,9 @@ start_portwine () { if check_gamescope_session ; then export PW_GAMEMODERUN_SLR="" - elif [[ "$PW_USE_GAMEMODE" = "1" && ! -z $DBUS_SESSION_BUS_ADDRESS ]] ; then + elif [[ "$PW_USE_GAMEMODE" = "1" ]] \ + && [[ ! -z "$DBUS_SESSION_BUS_ADDRESS" ]] + then if command -v gamemoded &>/dev/null ; then export GAMEMODERUN=1 PW_GAMEMODERUN_SLR="gamemoderun" @@ -4740,7 +4742,8 @@ resize_png () { if check_flatpak ; then if ! timeout 3 \ - exe-thumbnailer --force-resize -s "$RESIZE_TO" "$(readlink -f "${RESIZE_FILE}")" "${PORT_WINE_PATH}/data/img/${RESIZE_NAME_PNG}.png" && [ ! $( grep -oP 'PRETTY_NAME="\K[^"]+' /run/host/etc/os-release) =~ "Alpine Linux" ] + exe-thumbnailer --force-resize -s "$RESIZE_TO" "$(readlink -f "${RESIZE_FILE}")" "${PORT_WINE_PATH}/data/img/${RESIZE_NAME_PNG}.png" \ + && [[ ! $(grep -i "Alpine Linux" "/run/host/etc/os-release") ]] then print_error "exe-thumbnailer - broken!" if [[ ! -z $PW_DEBUG ]] ; then diff --git a/data_from_portwine/scripts/var b/data_from_portwine/scripts/var index 7366cb47..dc2490ad 100755 --- a/data_from_portwine/scripts/var +++ b/data_from_portwine/scripts/var @@ -1,6 +1,6 @@ #!/usr/bin/env bash #Author: Castro-Fidel (linux-gaming.ru) -#SCRIPTS_NEXT_VERSION=2342 +#SCRIPTS_NEXT_VERSION=2343 #SCRIPTS_STABLE_VERSION=2342 ######################################################################## # export PROTON_USE_XALIA="1"