mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-10-10 22:37:06 +00:00
Catch winetricks permissions errors
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user