Skip to content

Commit eeccff0

Browse files
committed
update syntax
1 parent 9e96f30 commit eeccff0

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

jupyter_xprahtml5/__init__.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,29 @@ def _get_random_alphanumeric_string(length):
7474

7575
# create command
7676
cmd = [os.path.join(HERE, 'share/launch_xpra.sh'),
77-
'start',
78-
'--html=on',
79-
'--bind-tcp=0.0.0.0:{port}',
80-
# '--socket-dir="' + socket_path + '/"', fixme: socket_dir not recognized
81-
'--server-idle-timeout=86400', # stop server after 24h with no client connection
82-
'--start=xterm',
83-
# '--start-child=xterm', '--exit-with-children',
84-
# '--tcp-auth=file:filename=' + fpath_passwd,
85-
# '--tcp-encryption=AES',
86-
# '--tcp-encryption-keyfile=' + fpath_aeskey,
87-
'--clipboard-direction=both',
88-
'--no-bell',
89-
'--no-speaker',
90-
'--no-printing',
91-
'--no-microphone',
92-
'--no-notifications',
93-
'--dpi=96',
94-
# '--sharing',
77+
'start',
78+
'--html=on',
79+
'--bind-tcp=0.0.0.0:{port}',
80+
# '--socket-dir="' + socket_path + '/"', # fixme: socket_dir not recognized
81+
'--server-idle-timeout=86400', # stop server after 24h with no client connection
82+
'--start=xterm',
83+
# '--start-child=xterm', '--exit-with-children',
84+
# '--tcp-auth=file:filename=' + fpath_passwd,
85+
# '--tcp-encryption=AES',
86+
# '--tcp-encryption-keyfile=' + fpath_aeskey,
87+
'--clipboard-direction=both',
88+
'--no-bell',
89+
'--no-speaker',
90+
'--no-printing',
91+
'--no-microphone',
92+
'--no-notifications',
93+
'--dpi=96',
94+
# '--sharing',
9595
]
9696
logger.info('Xpra command: ' + ' '.join(cmd))
9797

9898
return {
99-
'environment': { # as '--socket-dir' does not work as expected, we set this
99+
'environment': { # as '--socket-dir' does not work as expected, we set this
100100
'XDG_RUNTIME_DIR': socket_path,
101101
},
102102
'command': cmd,

0 commit comments

Comments
 (0)