mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-25 23:21:41 +03:00
added environment variable expansion to rdp parameters
This commit is contained in:
parent
04d0acb17e
commit
99a96bf343
@ -12,14 +12,16 @@ from uds import tools
|
||||
globals()['sp'] = sp # type: ignore # pylint: disable=undefined-variable
|
||||
|
||||
def execUdsRdp(udsrdp):
|
||||
import subprocess # @Reimport
|
||||
params = [udsrdp] + sp['as_new_xfreerdp_params'] + ['/v:{}'.format(sp['address'])] # @UndefinedVariable
|
||||
import subprocess
|
||||
import os.path
|
||||
params = [os.path.expandvars(i) for i in [udsrdp] + sp['as_new_xfreerdp_params'] + ['/v:{}'.format(sp['address'])]] # type: ignore
|
||||
tools.addTaskToWait(subprocess.Popen(params))
|
||||
|
||||
|
||||
def execNewXFreeRdp(xfreerdp):
|
||||
import subprocess # @Reimport
|
||||
params = [xfreerdp] + sp['as_new_xfreerdp_params'] + ['/v:{}'.format(sp['address'])] # @UndefinedVariable
|
||||
import subprocess
|
||||
import os.path
|
||||
params = [os.path.expandvars(i) for i in [xfreerdp] + sp['as_new_xfreerdp_params'] + ['/v:{}'.format(sp['address'])]] # type: ignore
|
||||
tools.addTaskToWait(subprocess.Popen(params))
|
||||
|
||||
# Try to locate a "valid" version of xfreerdp as first option (<1.1 does not allows drive redirections, so it will not be used if found)
|
||||
|
@ -1 +1 @@
|
||||
m7XY+kUSxXSqD276bNG7ChwBU06IOR75uTw9eXdSdBYqbvG4FhrUmL1OXRjfNRUh5kzUqkIggcJ5mj3b5Ws76QMWUjqcKS+SM2V5CGOzzPW+lFDeMLEnLCtsrmxZcCPacLce/utMlNf/AqLnraWAUCj8s+5CR68FeHE9fH3CRUryjHhvUPf51GDpMMXq+jnLotWn34xgZ2DI62Kp39qTdFYhmnZ3cGI3cHSks5Jo+uqeD1n0J+pF7vPM22aRknxW8XcLj+tXeUSw1QZVD0tXOI8RaUeD1jAH3bn0tBwP2spUfBwLFsxbWDULkuN89klfe1C/rardNJgIog7pUyyUD4HmeYQq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able=undefined-variable
|
||||
|
||||
def execUdsRdp(udsrdp, port):
|
||||
import subprocess # @Reimport
|
||||
params = [udsrdp] + sp['as_new_xfreerdp_params'] + ['/v:127.0.0.1:{}'.format(port)] # @UndefinedVariable
|
||||
import os.path
|
||||
params = [os.path.expandvars(i) for i in [udsrdp] + sp['as_new_xfreerdp_params'] + ['/v:127.0.0.1:{}'.format(port)]]
|
||||
tools.addTaskToWait(subprocess.Popen(params))
|
||||
|
||||
|
||||
def execNewXFreeRdp(xfreerdp, port):
|
||||
import subprocess # @Reimport
|
||||
params = [xfreerdp] + sp['as_new_xfreerdp_params'] + ['/v:127.0.0.1:{}'.format(port)] # @UndefinedVariable
|
||||
import subprocess
|
||||
import os.path
|
||||
params = [os.path.expandvars(i) for i in [xfreerdp] + sp['as_new_xfreerdp_params'] + ['/v:127.0.0.1:{}'.format(port)]]
|
||||
tools.addTaskToWait(subprocess.Popen(params))
|
||||
|
||||
# Try to locate a "valid" version of xfreerdp as first option (<1.1 does not allows drive redirections, so it will not be used if found)
|
||||
|
@ -1 +1 @@
|
||||
cL4uPkvN73tWpwdwNqedaOEHXLqmKlxKcg9iKW+QG3zCpPmbVn8nedzlumLfImLPQm+6ktpBscuIIsN5LyOZVuEnmoKWorLknlp5Jwzvp93gZEgGfCl8Y/YVaauvT4pPF5Pmczgsk/YykoAIHg5nllMHS0EdY0Pt/wAX7VgBN0RI1R4Ya5TeFC0b3NNZMg8kijmEYfSyNagPrzvM59SPOF93+iMMsZXaNiC7Lc0zbphS5QcjsMvALOHMyzl3omPVpIBFh/B8Wccx0svjfOp4Mdpt/tq0B9aGzhdEoaoqo3TNqINaPAVl90yPrfr/JrC7qEGNHaUWKgk5nImKJRyYBDiTFuv2TNMvJjrJ8JFgALsefdYhFM5EAo5i4G0bllEfn8g77NICnSlHGZal+x6oFORsmhRxJYXLDLDmeD/BJnHfhaNNSsy/dO/hBtAkkrIO3Qqot2MBo3ip6O/uOcCCdTNbwLCwlN90VahRzmf0j4irKNz5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