mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Show macOs version for --debug-config
This commit is contained in:
@@ -549,7 +549,9 @@ def create_opts(args, debug_config=False):
|
||||
if debug_config:
|
||||
print(version())
|
||||
print(' '.join(os.uname()))
|
||||
if not is_macos:
|
||||
if is_macos:
|
||||
print(' '.join(subprocess.check_output(['sw_vers']).decode('utf-8').splitlines()).strip())
|
||||
else:
|
||||
print('Running under:', green('Wayland' if is_wayland else 'X11'))
|
||||
if os.path.exists('/etc/issue'):
|
||||
print(open('/etc/issue', encoding='utf-8', errors='replace').read().strip())
|
||||
|
||||
Reference in New Issue
Block a user