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 cf02bd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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',
'-verbose',
'-SecurityTypes',
'None',
'-fg',
]
)

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

0 comments on commit cf02bd8

Please sign in to comment.