Merge remote-tracking branch 'origin/v2.2'

This commit is contained in:
Adolfo Gómez García 2018-03-23 10:40:16 +01:00
commit f3e8d98ae6
5 changed files with 9 additions and 7 deletions

View File

@ -47,7 +47,7 @@ import six
import os
import logging
__updated__ = '2017-12-20'
__updated__ = '2018-03-23'
logger = logging.getLogger(__name__)
@ -107,8 +107,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
)

View File

@ -45,7 +45,7 @@ import logging
import random
import string
__updated__ = '2018-03-14'
__updated__ = '2018-03-22'
logger = logging.getLogger(__name__)
@ -90,6 +90,7 @@ class TX2GOTransport(BaseX2GOTransport):
width, height = CommonPrefs.getWidthHeight(prefs)
rootless = False
desktop = self.desktopType.value
if desktop == "UDSVAPP":
desktop = "/usr/bin/udsvapp " + self.customCmd.value

View File

@ -40,7 +40,7 @@ from . import x2gofile
import logging
__updated__ = '2018-03-14'
__updated__ = '2018-03-22'
logger = logging.getLogger(__name__)
@ -76,6 +76,7 @@ class X2GOTransport(BaseX2GOTransport):
width, height = CommonPrefs.getWidthHeight(prefs)
rootless = False
desktop = self.desktopType.value
if desktop == "UDSVAPP":
desktop = "/usr/bin/udsvapp " + self.customCmd.value

View File

@ -11,7 +11,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)

View File

@ -20,7 +20,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)