From 95d073bec88442008c49f7783bb52c8d23492a15 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 26 Sep 2025 19:13:47 -0400 Subject: [PATCH] Catch winetricks permissions errors --- lug-helper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 276797f..98aa417 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2390,7 +2390,9 @@ install_game_wine() { debug_print continue "Preparing Wine prefix. Please wait; this will take a moment..." "$winetricks_bin" -q arial tahoma dxvk powershell win11 >"$tmp_install_log" 2>&1 - if [ "$?" -eq 1 ]; then + exit_code="$?" + if [ "$exit_code" -eq 1 ] || [ "$exit_code" -eq 126 ]; then + # 126 = permission denied (ie. noexec on /tmp) "$wine_path"/wineserver -k # Kill all wine processes progress_bar stop # Stop the zenity progress window if message question "Wine prefix creation failed. Aborting installation.\nThe install log was written to\n$tmp_install_log\n\nDo you want to delete\n${install_dir}?"; then