From 5909533161d2ffb251fa7282cb881c0f6f75c4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 21 Mar 2018 18:40:32 +0100 Subject: [PATCH] Fixed "smooth fonts".Now works on linux xfreerdp clients also. --- server/src/uds/transports/RDP/BaseRDPTransport.py | 4 ++-- server/src/uds/transports/RDP/RDPFile.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/src/uds/transports/RDP/BaseRDPTransport.py b/server/src/uds/transports/RDP/BaseRDPTransport.py index e481d20a..6cd0ba3d 100644 --- a/server/src/uds/transports/RDP/BaseRDPTransport.py +++ b/server/src/uds/transports/RDP/BaseRDPTransport.py @@ -42,7 +42,7 @@ from uds.core.util import connection import logging import os -__updated__ = '2018-02-15' +__updated__ = '2018-03-21' logger = logging.getLogger(__name__) @@ -100,7 +100,7 @@ class BaseRDPTransport(Transport): wallpaper = gui.CheckBoxField(label=_('Wallpaper/theme'), order=32, tooltip=_('If checked, the wallpaper and themes will be shown on machine (better user experience, more bandwidth)'), tab=gui.DISPLAY_TAB) multimon = gui.CheckBoxField(label=_('Multiple monitors'), order=33, tooltip=_('If checked, all client monitors will be used for displaying (only works on windows clients)'), tab=gui.DISPLAY_TAB) aero = gui.CheckBoxField(label=_('Allow Desk.Comp.'), order=34, tooltip=_('If checked, desktop composition will be allowed'), tab=gui.DISPLAY_TAB) - smooth = gui.CheckBoxField(label=_('Font Smoothing'), order=35, tooltip=_('If checked, fonts smoothing will be allowed (windows clients only)'), tab=gui.DISPLAY_TAB) + smooth = gui.CheckBoxField(label=_('Font Smoothing'), order=35, tooltip=_('If checked, fonts smoothing will be allowed'), tab=gui.DISPLAY_TAB) multimedia = gui.CheckBoxField(label=_('Multimedia sync'), order=40, tooltip=_('If checked. Linux client will use multimedia parameter for xfreerdp'), tab='Linux Client') alsa = gui.CheckBoxField(label=_('Use Alsa'), order=41, tooltip=_('If checked, Linux client will try to use ALSA, otherwise Pulse will be used'), tab='Linux Client') diff --git a/server/src/uds/transports/RDP/RDPFile.py b/server/src/uds/transports/RDP/RDPFile.py index 33552991..143d626a 100644 --- a/server/src/uds/transports/RDP/RDPFile.py +++ b/server/src/uds/transports/RDP/RDPFile.py @@ -39,7 +39,7 @@ from uds.core.util import OsDetector import six import shlex -__updated__ = '2017-12-21' +__updated__ = '2018-03-21' class RDPFile(object): @@ -153,6 +153,9 @@ class RDPFile(object): params.append('/bpp:{}'.format(self.bpp)) + if self.smoothFonts is True: + params.append('+fonts') + # RDP Security is A MUST if no username nor password is provided # NLA requires USERNAME&PASSWORD previously forceRDPSecurity = False