MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _check_xvfb

Method _check_xvfb

launcher/runner.py:225–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

223 logger.info("New auth file will not be created.")
224
225 def _check_xvfb(self):
226 if (
227 self.final_launch_mode == "virtual_headless"
228 and platform.system() == "Linux"
229 ):
230 if not shutil.which("Xvfb"):
231 logger.error("Xvfb not found. Required for virtual display mode.")
232 sys.exit(1)
233
234 def _check_server_port(self):
235 server_target_port = self.args.server_port

Callers 1

runMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected