mirror of
https://github.com/lutris/lutris
synced 2024-10-06 07:50:16 +00:00
Check for wineboot existence before creating wine prefix (Fixes #576)
This commit is contained in:
parent
2992951149
commit
8e7802b74b
|
@ -111,6 +111,9 @@ def create_prefix(prefix, wine_path=None, arch='win32'):
|
|||
wine_path = wine().get_executable()
|
||||
|
||||
wineboot_path = os.path.join(os.path.dirname(wine_path), 'wineboot')
|
||||
if not os.path.exist(wineboot_path):
|
||||
logger.error("No wineboot executable found in %s, your wine installation is most likely broken", wine_path)
|
||||
return
|
||||
|
||||
env = {
|
||||
'WINEARCH': arch,
|
||||
|
|
Loading…
Reference in a new issue