!͵ZddlZddlmZejeZdZGddeZdS)N)AbstractDisplayXvncc 8eZdZdZdddddddgd f d Zd Zd ZdS) XvncDisplayz Xvnc wrapper )iiblackFi N Tc ||_||_||_||_||_t j|t|||| dS)au :param bgcolor: 'black' or 'white' :param rfbport: Specifies the TCP port on which Xvnc listens for connections from viewers (the protocol used in VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number. :param rfbauth: Specifies the file containing the password used to authenticate viewers. ) use_xauthretries extra_argsmanage_global_envN)_size _color_depth_bgcolor_rfbport_rfbauthr__init__PROGRAM) selfsize color_depthbgcolorr rfbportrfbauthr r rs /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyvirtualdisplay/xvnc.pyrzXvncDisplay.__init__s^& '     !/       cdS)N)rhelptexts r _check_flagszXvncDisplay._check_flags1s rc Htdt|jdd|jd|jdfzdt|jg}|jr|dt|jgz }n|dd gz }|jr|d t|jgz }n ||jgz }|S) Nz-depthz -geometryz%dx%drz-rfbportz-rfbauthz-SecurityTypesNonez -displayfd) rstrrrrr_has_displayfd _pipe_wfdnew_display_var)rcmds r_cmdzXvncDisplay._cmd4s   ! " "  tz!}djm4 4      = . JDM 2 23 3CC $f- -C   * L#dn"5"56 6CC D() )C r)__name__ __module__ __qualname____doc__rr!r*rrrrr sn      D   rr)logging pyvirtualdisplay.abstractdisplayr getLoggerr+logrrrrrr3su<<<<<<g!! @@@@@/@@@@@r