Skip to content

Commit 04e353e

Browse files
committed
update syntax
1 parent eeccff0 commit 04e353e

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

jupyter_xprahtml5/__init__.py

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ def _xprahtml5_mappath(path):
1111
from getpass import getuser
1212

1313
uri_parms = '?' + '&'.join([
14-
'username=' + getuser(),
15-
# 'password=' + _xprahtml5_passwd,
16-
# 'encryption=AES',
17-
# 'key=' + _xprahtml5_aeskey,
18-
# 'sharing=true',
19-
])
14+
'username=' + getuser(),
15+
# 'password=' + _xprahtml5_passwd,
16+
# 'encryption=AES',
17+
# 'key=' + _xprahtml5_aeskey,
18+
# 'sharing=true',
19+
])
2020

2121
if path in ('/', '/index.html', ):
2222
path = '/index.html' + uri_parms
@@ -73,26 +73,27 @@ def _get_random_alphanumeric_string(length):
7373
raise FileNotFoundError("Encryption key generation in temp file FAILED")
7474

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

9899
return {

0 commit comments

Comments
 (0)