mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
X2go fixes
This commit is contained in:
parent
a6397e9ff6
commit
9c65db5c25
@ -47,7 +47,7 @@ import six
|
||||
import os
|
||||
import logging
|
||||
|
||||
__updated__ = '2017-12-20'
|
||||
__updated__ = '2018-03-23'
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -108,8 +108,8 @@ class BaseX2GOTransport(Transport):
|
||||
|
||||
exports = gui.CheckBoxField(
|
||||
order=14,
|
||||
label=_('Redirect root folder'),
|
||||
tooltip=_('If checked, user home folder will be redirected'),
|
||||
label=_('Redirect home folder'),
|
||||
tooltip=_('If checked, user home folder will be redirected. (On linux, also redirects /media)'),
|
||||
defvalue=gui.FALSE,
|
||||
tab=gui.PARAMETERS_TAB
|
||||
)
|
||||
|
@ -12,7 +12,7 @@ from uds import tools # @UnresolvedImport
|
||||
|
||||
import six
|
||||
|
||||
home = expanduser('~') + ':1;'
|
||||
home = expanduser('~') + ':1;/media:1;'
|
||||
keyFile = tools.saveTempFile('''{m.key}''')
|
||||
theFile = '''{m.xf}'''.format(export=home, keyFile=keyFile.replace('\\', '/'), ip='{m.ip}', port='22')
|
||||
filename = tools.saveTempFile(theFile)
|
||||
|
@ -21,7 +21,7 @@ if forwardThread.status == 2:
|
||||
|
||||
tools.addTaskToWait(forwardThread)
|
||||
|
||||
home = expanduser('~') + ':1;'
|
||||
home = expanduser('~') + ':1;/media:1;'
|
||||
keyFile = tools.saveTempFile('''{m.key}''')
|
||||
theFile = '''{m.xf}'''.format(export=home, keyFile=keyFile.replace('\\', '/'), ip='127.0.0.1', port=port)
|
||||
filename = tools.saveTempFile(theFile)
|
||||
|
Loading…
Reference in New Issue
Block a user