Skip to content

Commit

Permalink
test dynamic port
Browse files Browse the repository at this point in the history
  • Loading branch information
mawigh committed Jul 7, 2022
1 parent c45487e commit 056f1bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyter_desktop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,21 @@ def setup_desktop():
'-xstartup', os.path.join(HERE, 'share/xstartup'),
'-geometry', '1680x1050',
'-SecurityTypes', 'None',
'-rfbport', '{port}',
'-fg',
]))
return {
'command': [
'websockify', '-v',
'--web', os.path.join(HERE, 'share/web/noVNC-1.1.0'),
'--heartbeat', '30',
'5901',
'{port}',
] + socket_args + [
'--',
'/bin/sh', '-c',
f'cd {os.getcwd()} && {vnc_command}'
],
'port': 5901,
#'port': 5901,
'timeout': 30,
'mappath': {'/': '/vnc_lite.html'},
'new_browser_window': True
Expand Down

0 comments on commit 056f1bb

Please sign in to comment.