MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / x11_start_server

Function x11_start_server

Scripts/Developer Base/Mobile Desktop.py:1029–1038  ·  view source on GitHub ↗
(cfg: Dict)

Source from the content-addressed store, hash-verified

1027 print(tr(cfg, "x11_stopped"))
1028
1029def 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
1040def x11_start_desktop_in_distro(cfg: Dict, distro: str) -> None:
1041 sys_cfg = cfg["systems"][distro]

Callers 1

action_x11Function · 0.70

Calls 2

printFunction · 0.85
trFunction · 0.70

Tested by

no test coverage detected