mirror of
https://github.com/dkmstr/openuds.git
synced 2025-02-03 13:47:14 +03:00
Fixed rootless
This commit is contained in:
parent
e4807cf648
commit
33600bda6e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user