Skip to content

Commit

Permalink
Let user defines its own xstartup and geometry
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. We also
remove the prescribed geometry to let the user define its own
using vnc config or the session manager.
  • Loading branch information
cmd-ntrf committed Sep 14, 2023
1 parent 3aac4d2 commit 66fb7a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyter_remote_desktop_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ 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 66fb7a2

Please sign in to comment.