SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > > site-packages > pyvirtualdisplay


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11//site-packages/pyvirtualdisplay

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
examples Directory - -
__init__.py File 241 bytes April 17 2025 13:10:58.
about.py File 20 bytes April 17 2025 13:10:58.
abstractdisplay.py File 12583 bytes April 17 2025 13:10:58.
display.py File 3257 bytes April 17 2025 13:10:58.
py.typed File 0 bytes April 17 2025 13:10:58.
smartdisplay.py File 2663 bytes April 17 2025 13:10:58.
util.py File 486 bytes April 17 2025 13:10:58.
xauth.py File 1167 bytes April 17 2025 13:10:58.
xephyr.py File 1635 bytes April 17 2025 13:10:58.
xvfb.py File 1941 bytes April 17 2025 13:10:58.
xvnc.py File 1917 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11//site-packages/pyvirtualdisplay/xephyr.py

import logging

from pyvirtualdisplay.abstractdisplay import AbstractDisplay

log = logging.getLogger(__name__)

PROGRAM = "Xephyr"


class XephyrDisplay(AbstractDisplay):
    """
    Xephyr wrapper

    Xephyr is an X server outputting to a window on a pre-existing X display
    """

    def __init__(
        self,
        size=(1024, 768),
        color_depth=24,
        bgcolor="black",
        use_xauth=False,
        retries=10,
        extra_args=[],
        manage_global_env=True,
        parent=None,
    ):
        """
        :param bgcolor: 'black' or 'white'
        """
        self._color_depth = color_depth
        self._size = size
        self._bgcolor = bgcolor
        self._parent = parent

        AbstractDisplay.__init__(
            self,
            PROGRAM,
            use_xauth=use_xauth,
            retries=retries,
            extra_args=extra_args,
            manage_global_env=manage_global_env,
        )

    def _check_flags(self, helptext):
        self._has_resizeable = "-resizeable" in helptext

    def _cmd(self):
        cmd = (
            [
                PROGRAM,
            ]
            + (["-parent", self._parent] if self._parent else [])
            + [
                dict(black="-br", white="-wr")[self._bgcolor],
                "-screen",
                "x".join(map(str, list(self._size) + [self._color_depth])),
            ]
        )
        if self._has_displayfd:
            cmd += ["-displayfd", str(self._pipe_wfd)]
        else:
            cmd += [self.new_display_var]

        if self._has_resizeable:
            cmd += ["-resizeable"]
        return cmd

SILENT KILLER Tool