Skip to content

Commit

Permalink
support Xtightvnc (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ponty committed Sep 18, 2023
1 parent 4827441 commit ae7dfc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyvirtualdisplay/xvnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(
self._bgcolor = bgcolor
self._rfbport = rfbport
self._rfbauth = rfbauth
self._has_SecurityTypes = True

AbstractDisplay.__init__(
self,
Expand All @@ -49,7 +50,7 @@ def __init__(
)

def _check_flags(self, helptext):
pass
self._has_SecurityTypes = "SecurityTypes" in helptext

def _cmd(self):
cmd = [
Expand All @@ -67,7 +68,8 @@ def _cmd(self):
# default:
# -SecurityTypes = VncAuth
else:
cmd += ["-SecurityTypes", "None"]
if self._has_SecurityTypes:
cmd += ["-SecurityTypes", "None"]

if self._has_displayfd:
cmd += ["-displayfd", str(self._pipe_wfd)]
Expand Down

0 comments on commit ae7dfc1

Please sign in to comment.