@@ -11,12 +11,12 @@ def _xprahtml5_mappath(path):
11
11
from getpass import getuser
12
12
13
13
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
+ ])
20
20
21
21
if path in ('/' , '/index.html' , ):
22
22
path = '/index.html' + uri_parms
@@ -73,26 +73,27 @@ def _get_random_alphanumeric_string(length):
73
73
raise FileNotFoundError ("Encryption key generation in temp file FAILED" )
74
74
75
75
# 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
+ ]
96
97
logger .info ('Xpra command: ' + ' ' .join (cmd ))
97
98
98
99
return {
0 commit comments