mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-24 21:34:41 +03:00
Added localized MSRDP as possible path
This commit is contained in:
parent
4809252434
commit
917a201483
@ -11,6 +11,9 @@ globals()['sp'] = sp # type: ignore # pylint: disable=undefined-variable
|
||||
msrdc = (
|
||||
'/Applications/Microsoft Remote Desktop.app/Contents/MacOS/Microsoft Remote Desktop'
|
||||
)
|
||||
msrdc_localized = (
|
||||
'/Applications/Microsoft Remote Desktop.localized/Microsoft Remote Desktop.app/Contents/MacOS/Microsoft Remote Desktop'
|
||||
)
|
||||
xfreerdp = tools.findApp('xfreerdp')
|
||||
executable = None
|
||||
|
||||
@ -37,8 +40,10 @@ def fixResolution():
|
||||
# Check first xfreerdp, allow password redir
|
||||
if xfreerdp and os.path.isfile(xfreerdp):
|
||||
executable = xfreerdp
|
||||
elif msrdc and os.path.isfile(msrdc) and sp['as_file']: # type: ignore
|
||||
elif os.path.isfile(msrdc) and sp['as_file']: # type: ignore
|
||||
executable = msrdc
|
||||
elif os.path.isfile(msrdc_localized) and sp['as_file']: # type: ignore
|
||||
executable = msrdc_localized
|
||||
|
||||
if executable is None:
|
||||
if sp['as_file']: # type: ignore
|
||||
|
@ -1 +1 @@
|
||||
hWCOxfB6KhYm93AeRp3dBe0LOYNjRdlBMzgTYlRlIe89Kiq2YyO9ap/cYG9xT8+oClWTQwhL7esSrE/7sH0bo7OSy5X2EwjNreP2hET+F+1oDEKMlJiYh3ZkN+TWQXf6kuylnp1LMsVSpMIGEJ9qZ2xgdsngyxJTh1LIPHdX2hBi4JgjUSz37PNiGXTbtUS89QvY4yrBT1Vajai28RlsnUMnwW4X9YPfk1s7++GY//wjdpd2vPwwQvfLs+70KwpWYKo3UkLdRW6Tpkhbw8IbM9wF1MrT1ID1k6//hBJ5pFa7m2vacsx7zIviETsUMIs9Zol3YNBetFsllNX+mlPNxEQv/s23DMt41ibHsiTk8+FMHphmPidlAwQNhNTfb+FIIRRa9MFb88lm/5l8NYqx5Vb48KiD8K6xE6+HOrFm0wU3MkeA1nfDlO1xotp/ze8Ur2iVA50QebrgUkDkEGO1GybU5IUSo1k/DesNHspIv8nej5BsLrbMPxDApCsUki7d2Ufr4aHgcc2CNLJrVT71yXcCW7ngLUIz4wnjBxCnQwP1AsIA4uXOHbqs0lXZ3yde2wCqQUsHpR1R1BtVOxQzbwezsAbYHNJROQlqpDltwSg8Fy0enFuYy4znVAN/5VxUARCWSN77/O3VniW3ll365eoHDI5Zh4UrKOgqFxTrr28=
|
||||
AI1DH0mP1dtmxnnjYOj2p+x1sNzGU0PIXFgn+0Y6sXSJvikFTX0WsCWEtloVO4X6x26bVqot0cFDmfiS1EdnnbPhnCmSKXUbVleqZ+wcUYRKXx5hP2Q6otP8bCGqJOpTA5/rC0Vb4gGlBw00iVbZtxyW+GazL6eTAlhUQlx3qEdbiFWpV8siG5qusWkMg+pJXnaYt6b1GDIXwNhqTZUxs1lBWWYDL1k2xXQn2LQ80UK+7ng6v/Z5pEQYQNrrshYPjSCysaQpHNdS2i3yi2uv6afq8IPENDxtXozcYLwHcN6lnfvihWKIttTa76fx5qdRNMMPAPDbsbVqfKehY/36y1Av95DBN1B65nAWTq54bqLD0Lf6xPGrerga21VsUA4WPfHCslvDhi52+nVIDtawZsm08nT6g3uSgW8jsrC3Xc2GIev/clhlsm99maSo2lNAVFRB637W1IGSo0nIuQj/0q+LGKScEOiAFBrYr7DgDI0gQV9hyn1TKDqNLXjZg76FXgCStaTV8B1BdVcoyWSSWxbzomnLyIpOZLB2Gqvc+/QOLa1lPcHi8M7Q+/VZELxIQm8O7QQAhl91P/yek08cLrvJPAvyeBlmNeKP1jOOM+0Yzs87HmGiWCDwxSiHb12lmcWFHVUydduKYiTicr4xz1uEV7OCiJXbWOLGv/Ag7EM=
|
@ -34,14 +34,20 @@ def fixResolution():
|
||||
msrdc = (
|
||||
'/Applications/Microsoft Remote Desktop.app/Contents/MacOS/Microsoft Remote Desktop'
|
||||
)
|
||||
msrdc_localized = (
|
||||
'/Applications/Microsoft Remote Desktop.localized/Microsoft Remote Desktop.app/Contents/MacOS/Microsoft Remote Desktop'
|
||||
)
|
||||
|
||||
xfreerdp = tools.findApp('xfreerdp')
|
||||
executable = None
|
||||
|
||||
# Check first xfreerdp, allow password redir
|
||||
if xfreerdp and os.path.isfile(xfreerdp):
|
||||
executable = xfreerdp
|
||||
elif msrdc and os.path.isfile(msrdc) and sp['as_file']: # type: ignore
|
||||
elif os.path.isfile(msrdc) and sp['as_file']: # type: ignore
|
||||
executable = msrdc
|
||||
elif os.path.isfile(msrdc_localized) and sp['as_file']: # type: ignore
|
||||
executable = msrdc_localized
|
||||
|
||||
if executable is None:
|
||||
if sp['as_rdp_url']: # type: ignore
|
||||
|
@ -1 +1 @@
|
||||
XNJEeqnpcluSTlnHvn1UOM88MeWKB5wX3vCKOQAEdh4I9tVlTVvPT3EHwj/3CgqEFGeM+2d8iC3T6w19hrD+CZGC2Vr2UckOEjM4EXYcF0Bd5ehYdGsdzkUg9CpgHZTs0GlErG96lVid3aXP+fh16k3IVOaKu5N30APtSN4BBcAeHLdWK1i8aV6rSJ6TKkdKNVV8waklTWXvDrSfexZIUPXX66znApww0DpQkRmIdqZQjk7Eb2unuTkZnFL7F3S3Czd+KyvMPraiYbHmql9ldYpB+qx0mFhliLUQJILWoYrtuAa3ovSuBJAAxrtWLdX/LX5HV8YVrnEGpMitwTMNivXGprv/2LI1UOh3pBmocSL9ka465rfP2DoIoDBRGXcFnTtmzl9M7O/HlHkqzKeH8xzZWOcAhAeqXQTZxM6ElpHbcksDS1tU7YGrxN1SW40+iIkNxEHAL0yQNrhR7O+U09E7i3DQEL9vbLve0ooVN1VAfEenpU/sowUxb2pdzkRrY7PUubujKmtWbU7IOzmB2B2mDjJXoJwuuLOCVTEN8sg30nduCFUtpoR3XwYbgw4W+e0SR+kMi2CBXs42GEuPCP6MtIekZtX4zU5zMVwnO/i26vC9OdUIz1+4JEa7eRdP+AW7J1pgNMRV7tX9btjYe3iZJDw18W3U3NhmM74yA4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