Skip to content

Commit bc7b52e

Browse files
committed
refactor: adjust variable name for readability
1 parent a7c1ae9 commit bc7b52e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyter_remote_desktop_proxy/setup_websockify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def setup_websockify():
3434
is_tigervnc = "tigervnc" in vncserver_file.read().casefold()
3535

3636
if is_tigervnc:
37+
websockify_args = ['--unix-target', sockets_path]
3738
vnc_args = [vncserver, '-rfbunixpath', sockets_path]
38-
socket_args = ['--unix-target', sockets_path]
3939
else:
40+
websockify_args = []
4041
vnc_args = [vncserver, '-rfbport', '{port}']
41-
socket_args = []
4242

4343
if not os.path.exists(os.path.expanduser('~/.vnc/xstartup')):
4444
vnc_args.extend(['-xstartup', os.path.join(HERE, 'share/xstartup')])
@@ -63,7 +63,7 @@ def setup_websockify():
6363
'30',
6464
'{port}',
6565
]
66-
+ socket_args
66+
+ websockify_args
6767
+ ['--', '/bin/sh', '-c', f'cd {os.getcwd()} && {vnc_command}'],
6868
'timeout': 30,
6969
'new_browser_window': True,

0 commit comments

Comments
 (0)