mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-18 06:03:54 +03:00
added /rfx /rfx:gfx to macos by default
This commit is contained in:
parent
45a4dec18f
commit
0363ac3a6a
@ -48,7 +48,7 @@ class RDPFile:
|
|||||||
address = ''
|
address = ''
|
||||||
username = ''
|
username = ''
|
||||||
domain = ''
|
domain = ''
|
||||||
password = ''
|
password = '' # nosec: emtpy password is ok here
|
||||||
redirectSerials = False
|
redirectSerials = False
|
||||||
redirectPrinters = False
|
redirectPrinters = False
|
||||||
redirectDrives = "false" # Can have "true", "false" or "dynamic"
|
redirectDrives = "false" # Can have "true", "false" or "dynamic"
|
||||||
@ -179,7 +179,7 @@ class RDPFile:
|
|||||||
params.append('/u:{}'.format(self.username))
|
params.append('/u:{}'.format(self.username))
|
||||||
else:
|
else:
|
||||||
forceRDPSecurity = True
|
forceRDPSecurity = True
|
||||||
if self.password != '':
|
if self.password:
|
||||||
params.append('/p:{}'.format(self.password))
|
params.append('/p:{}'.format(self.password))
|
||||||
else:
|
else:
|
||||||
forceRDPSecurity = True
|
forceRDPSecurity = True
|
||||||
@ -192,10 +192,16 @@ class RDPFile:
|
|||||||
if self.customParameters and self.customParameters.strip() != '':
|
if self.customParameters and self.customParameters.strip() != '':
|
||||||
params += shlex.split(self.customParameters.strip())
|
params += shlex.split(self.customParameters.strip())
|
||||||
|
|
||||||
|
# On MacOSX, /rfx /gfx:rfx are almost inprescindible, as it seems the only way to get a decent performance
|
||||||
|
if self.target == OsDetector.KnownOS.Macintosh:
|
||||||
|
for i in ('/rfx', '/gfx:rfx'):
|
||||||
|
if i not in params:
|
||||||
|
params.append(i)
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
def getGeneric(self): # pylint: disable=too-many-statements
|
def getGeneric(self): # pylint: disable=too-many-statements
|
||||||
password = '{password}'
|
password = '{password}' # nosec: placeholder
|
||||||
screenMode = '2' if self.fullScreen else '1'
|
screenMode = '2' if self.fullScreen else '1'
|
||||||
audioMode = '0' if self.redirectAudio else '2'
|
audioMode = '0' if self.redirectAudio else '2'
|
||||||
serials = '1' if self.redirectSerials else '0'
|
serials = '1' if self.redirectSerials else '0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user