File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
jupyter_remote_desktop_proxy Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,17 @@ def setup_websockify():
21
21
# TigerVNC provides the option to connect a Unix socket. TurboVNC does not.
22
22
# TurboVNC and TigerVNC share the same origin and both use a Perl script
23
23
# as the executable vncserver. We can determine if vncserver is TigerVNC
24
- # by searching TigerVNC string in the Perl script.
24
+ # by searching tigervnc string in the Perl script.
25
+ #
26
+ # The content of the vncserver executable can differ depending on how
27
+ # TigerVNC and TurboVNC has been distributed. Below are files known to be
28
+ # read in some situations:
29
+ #
30
+ # - https://github.com/TigerVNC/tigervnc/blob/v1.13.1/unix/vncserver/vncserver.in
31
+ # - https://github.com/TurboVNC/turbovnc/blob/3.1.1/unix/vncserver.in
32
+ #
25
33
with open (vncserver ) as vncserver_file :
26
- is_tigervnc = "TigerVNC " in vncserver_file .read ()
34
+ is_tigervnc = "tigervnc " in vncserver_file .read (). casefold ()
27
35
28
36
if is_tigervnc :
29
37
vnc_args = [vncserver , '-rfbunixpath' , sockets_path ]
You can’t perform that action at this time.
0 commit comments