Catch winetricks permissions errors

This commit is contained in:
the-sane
2025-09-26 19:13:47 -04:00
parent a7650a2c93
commit 95d073bec8

View File

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