mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Simplify panel check
We only dont work on macOS. So dont need to check or DISPLAY env vars since all other display servers are supported.
This commit is contained in:
parent
bbaf2d9288
commit
512d6bd308
1 changed files with 2 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
import os
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, List, Tuple
|
||||
|
||||
|
|
@ -158,8 +157,8 @@ def layer_shell_config(opts: PanelCLIOptions) -> LayerShellConfig:
|
|||
|
||||
def main(sys_args: List[str]) -> None:
|
||||
global args
|
||||
if is_macos or not (os.environ.get('DISPLAY') or os.environ.get('WAYLAND_DISPLAY')):
|
||||
raise SystemExit('Currently the panel kitten is supported only on X11 or Wayland desktops')
|
||||
if is_macos:
|
||||
raise SystemExit('Currently the panel kitten is not supported on macOS')
|
||||
args, items = parse_panel_args(sys_args[1:])
|
||||
if not items:
|
||||
raise SystemExit('You must specify the program to run')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue