From 14273f723b929815cbac55fd699135ef56d1a6c8 Mon Sep 17 00:00:00 2001 From: Sergey Palcheh Date: Sat, 18 Oct 2025 16:24:06 +0600 Subject: [PATCH] the error of determining the current directory has been fixed --- winehelper | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/winehelper b/winehelper index 34e4405..97d4bee 100755 --- a/winehelper +++ b/winehelper @@ -1411,7 +1411,6 @@ wine_run () { then fatal "Нельзя запустить 64-битное приложение в 32-битном префиксе!" fi - cd "$win_file_path" else fatal "Команда введена не правильно или не найден исполняемый файл $1" fi @@ -1432,9 +1431,15 @@ wine_run () { env | grep -e "WH_" -e "WINE" -e "DXVK" -e "VKD3D" | tee -a "$log_file" echo "##### Лог WINE #####" | tee -a "$log_file" - $MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS 2>&1 | tee -a "$log_file" + ( + cd "$win_file_path" + $MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS 2>&1 | tee -a "$log_file" + ) else - $MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS + ( + cd "$win_file_path" + $MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS + ) fi wait_wineserver