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