Skip to content

Commit

Permalink
Evaluate the returncode of the Winetricks process
Browse files Browse the repository at this point in the history
  • Loading branch information
Root-Core authored Mar 17, 2024
1 parent 2eb3a6d commit cd26dc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
Expand Down

0 comments on commit cd26dc0

Please sign in to comment.