diff --git a/installer/steps.py b/installer/steps.py index 174e6542..a99a0660 100644 --- a/installer/steps.py +++ b/installer/steps.py @@ -349,7 +349,8 @@ class Check(Step): raise InstallError('check.keys_unreadable') from None if 'header_key' not in key_values: raise InstallError('check.keys_no_header_key') - if sys.platform == 'linux' and ctx.will_run('prepare') and not (os.environ.get('DISPLAY') or os.environ.get('WAYLAND_DISPLAY')): + if (sys.platform == 'linux' and ctx.will_run('prepare') + and not (os.environ.get('DISPLAY') or os.environ.get('WAYLAND_DISPLAY'))): # totk --prepare-shaders opens a window and needs a present-capable queue family; without a display it # fails after lift and compile (~15 min), so stop here raise InstallError('check.no_display')