(cfg: Dict)
| 1027 | print(tr(cfg, "x11_stopped")) |
| 1028 | |
| 1029 | def x11_start_server(cfg: Dict) -> bool: |
| 1030 | if shutil.which("termux-x11") is None: |
| 1031 | print(tr(cfg, "x11_missing")) |
| 1032 | return False |
| 1033 | print(tr(cfg, "x11_starting")) |
| 1034 | try: |
| 1035 | subprocess.Popen(["termux-x11", ":0"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) |
| 1036 | return True |
| 1037 | except Exception: |
| 1038 | return False |
| 1039 | |
| 1040 | def x11_start_desktop_in_distro(cfg: Dict, distro: str) -> None: |
| 1041 | sys_cfg = cfg["systems"][distro] |
no test coverage detected