OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pyvirtualdisplay
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
241 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📁
__pycache__
-
02/07/2025 10:01:35 PM
rwxr-xr-x
📄
about.py
20 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
abstractdisplay.py
12.29 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
display.py
3.18 KB
12/18/2024 10:23:15 AM
rw-r--r--
📁
examples
-
02/07/2025 10:01:35 PM
rwxr-xr-x
📄
py.typed
0 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
smartdisplay.py
2.6 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
util.py
486 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
xauth.py
1.14 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
xephyr.py
1.6 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
xvfb.py
1.9 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
xvnc.py
1.87 KB
12/18/2024 10:23:15 AM
rw-r--r--
Editing: xephyr.py
Close
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