mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
Wrap the display check's condition over two lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2470097f67
commit
b3f569a448
1 file changed
+2
-1
+2
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user