From cd26dc041c48918de823153eed32d39f0d7d6555 Mon Sep 17 00:00:00 2001 From: Root-Core Date: Sun, 17 Mar 2024 21:46:24 +0100 Subject: [PATCH] Evaluate the returncode of the Winetricks process --- util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util.py b/util.py index a23f033e..09df5f7c 100755 --- a/util.py +++ b/util.py @@ -285,6 +285,12 @@ def protontricks(verb): process.wait() _killhanging() + # Check if the verb failed (eg. access denied) + retc = process.returncode + if retc != 0: + log.warn(f'Winetricks failed running verb "{verb}" with status {retc}.') + return False + # Check if verb recorded to winetricks log if not checkinstalled(verb): log.warn('Not recorded as installed: winetricks ' + verb + ', forcing!')