Fixed rootless

This commit is contained in:
Adolfo Gómez García 2018-03-14 15:23:44 +01:00
parent e4807cf648
commit 33600bda6e
3 changed files with 10 additions and 4 deletions

View File

@ -45,7 +45,7 @@ import logging
import random
import string
__updated__ = '2017-12-20'
__updated__ = '2018-03-14'
logger = logging.getLogger(__name__)
@ -93,6 +93,7 @@ class TX2GOTransport(BaseX2GOTransport):
desktop = self.desktopType.value
if desktop == "UDSVAPP":
desktop = "/usr/bin/udsvapp " + self.customCmd.value
rootless = True
xf = x2gofile.getTemplate(
speed=self.speed.value,
@ -102,6 +103,7 @@ class TX2GOTransport(BaseX2GOTransport):
soundSystem=self.sound.value,
windowManager=desktop,
exports=self.exports.isTrue(),
rootless=rootless,
width=width,
height=height,
user=username

View File

@ -40,7 +40,7 @@ from . import x2gofile
import logging
__updated__ = '2017-12-20'
__updated__ = '2018-03-14'
logger = logging.getLogger(__name__)
@ -79,6 +79,7 @@ class X2GOTransport(BaseX2GOTransport):
desktop = self.desktopType.value
if desktop == "UDSVAPP":
desktop = "/usr/bin/udsvapp " + self.customCmd.value
rootless = True
xf = x2gofile.getTemplate(
speed=self.speed.value,
@ -88,6 +89,7 @@ class X2GOTransport(BaseX2GOTransport):
soundSystem=self.sound.value,
windowManager=desktop,
exports=self.exports.isTrue(),
rootless=rootless,
width=width,
height=height,
user=username

View File

@ -75,7 +75,7 @@ autologin=false
krblogin=false
krbdelegation=false
directrdp=false
rootless=false
rootless={rootless}
published=false
applications=WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL
command={windowManager}
@ -94,7 +94,8 @@ sshproxyautologin=false
sshproxykrblogin=false
'''
def getTemplate(speed, pack, quality, sound, soundSystem, windowManager, exports, width, height, user):
def getTemplate(speed, pack, quality, sound, soundSystem, windowManager, exports, rootless, width, height, user):
trueFalse = lambda(x): 'true' if x else 'false'
export = 'export="{export}"' if exports else ''
if width == -1 or height == -1:
@ -111,6 +112,7 @@ def getTemplate(speed, pack, quality, sound, soundSystem, windowManager, exports
soundSystem=soundSystem,
windowManager=windowManager,
export=export,
rootless=rootless and 'true' or 'false',
width=width,
height=height,
fullscreen=fullscreen,