MCPcopy
hub / github.com/budtmo/docker-android / start_vnc_web

Function start_vnc_web

cli/src/app.py:125–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def start_vnc_web() -> None:
126 if convert_str_to_bool(os.getenv(ENV.WEB_VNC)):
127 vnc_port = get_env_value_or_raise(ENV.VNC_PORT)
128 vnc_web_port = get_env_value_or_raise(ENV.WEB_VNC_PORT)
129 cmd = "/opt/noVNC/utils/novnc_proxy"
130 args = f"--vnc localhost:{vnc_port} localhost:{vnc_web_port}"
131 vnc_web = Application("vnc_web", cmd, args, False)
132 vnc_web.start()
133 else:
134 logger.info("env WEB_VNC cannot be found, VNC_WEB is not started!")
135
136
137@cli.command()

Callers 1

startFunction · 0.85

Calls 4

startMethod · 0.95
convert_str_to_boolFunction · 0.90
get_env_value_or_raiseFunction · 0.90
ApplicationClass · 0.90

Tested by

no test coverage detected