the error of determining the current directory has been fixed

This commit is contained in:
Sergey Palcheh
2025-10-18 16:24:06 +06:00
parent a8e0fdce0a
commit 14273f723b

View File

@@ -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