1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

added Dani sugested changes for MSRDP of Microsoft on MacOsX

This commit is contained in:
Adolfo Gómez García 2021-04-07 10:36:57 +02:00
parent 9340e3c3c1
commit 5ff3c58149
2 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,9 @@ elif executable == msrdc:
# Rename as .rdp, so open recognizes it
shutil.move(filename, filename + '.rdp')
tools.addTaskToWait(subprocess.Popen(['open', filename + '.rdp']))
#tools.addTaskToWait(subprocess.Popen(['open', filename + '.rdp']))
# Force MSRDP to be used with -a (thanks to Dani Torregosa)
tools.addTaskToWait(subprocess.Popen(['open', '-a', '/Applications/Microsoft Remote Desktop.app', filename + '.rdp']))
tools.addFileToUnlink(filename + '.rdp')
elif executable == xfreerdp:
# Fix resolution...

View File

@ -84,7 +84,9 @@ if executable == msrdc:
# Rename as .rdp, so open recognizes it
shutil.move(filename, filename + '.rdp')
tools.addTaskToWait(subprocess.Popen(['open', filename + '.rdp']))
# tools.addTaskToWait(subprocess.Popen(['open', filename + '.rdp']))
# Force MSRDP to be used with -a (thanks to Dani Torregosa)
tools.addTaskToWait(subprocess.Popen(['open', '-a', '/Applications/Microsoft Remote Desktop.app', filename + '.rdp']))
tools.addFileToUnlink(filename + '.rdp')
elif executable == xfreerdp:
# Fix resolution...