From b3f569a448f0dc6b1cc9fa8999454e38a95cf383 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Sun, 1 Nov 2026 23:29:54 +0300 Subject: [PATCH] Wrap the display check's condition over two lines Co-Authored-By: Claude Opus 5.5 --- installer/steps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')