Skip to content

Commit

Permalink
Let user defines its own xstartup
Browse files Browse the repository at this point in the history
User can override the default provided xstartup by providing
their own in the standard location ~/.vnc/xstartup.
  • Loading branch information
cmd-ntrf committed Sep 14, 2023
1 parent 3aac4d2 commit fb47c59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jupyter_remote_desktop_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ def setup_desktop():
vnc_args = [vncserver]
socket_args = []

if not os.path.exists(os.path.expand('~/.vnc/xstartup')):
vnc_args.extend(['-xstartup', os.path.join(HERE, 'share/xstartup')])

vnc_command = shlex.join(
vnc_args
+ [
'-verbose',
'-xstartup',
os.path.join(HERE, 'share/xstartup'),
'-geometry',
'1680x1050',
'-SecurityTypes',
'None',
'-fg',
]
)

return {
'command': [
'websockify',
Expand Down

0 comments on commit fb47c59

Please sign in to comment.