From 3d57cb9bec3dc28f5a8d86d3e0f30d03afaf8a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 21 Oct 2024 18:20:01 +0200 Subject: [PATCH] Refactor connection bar property in RDPTransport and TRDPTransport and added, by default, the connection bar in linux if configured. --- server/src/uds/transports/RDP/rdp.py | 2 +- server/src/uds/transports/RDP/rdp_file.py | 7 +++++-- server/src/uds/transports/RDP/rdptunnel.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/server/src/uds/transports/RDP/rdp.py b/server/src/uds/transports/RDP/rdp.py index c002c24cd..5187e7dcf 100644 --- a/server/src/uds/transports/RDP/rdp.py +++ b/server/src/uds/transports/RDP/rdp.py @@ -139,7 +139,7 @@ class RDPTransport(BaseRDPTransport): r.multimon = self.multimon.as_bool() r.desktop_composition = self.aero.as_bool() r.smooth_fonts = self.smooth.as_bool() - r.pin_bar = self.show_connection_bar.as_bool() + r.connection_bar = self.show_connection_bar.as_bool() r.enable_credssp_support = self.credssp.as_bool() r.multimedia = self.lnx_multimedia.as_bool() r.alsa = self.lnx_alsa.as_bool() diff --git a/server/src/uds/transports/RDP/rdp_file.py b/server/src/uds/transports/RDP/rdp_file.py index 4aa680f23..4543b553f 100644 --- a/server/src/uds/transports/RDP/rdp_file.py +++ b/server/src/uds/transports/RDP/rdp_file.py @@ -60,7 +60,7 @@ class RDPFile: compression: bool = True multimedia: bool = True alsa: bool = True - pin_bar: bool = True + connection_bar: bool = True show_wallpaper: bool = False multimon: bool = False desktop_composition: bool = False @@ -187,6 +187,9 @@ class RDPFile: if force_rdp_security: params.append('/sec:rdp') + + if self.connection_bar and '/floatbar' not in params: + params.append('/floatbar:sticky:off') if self.custom_parameters and self.custom_parameters.strip() != '': params += shlex.split(self.custom_parameters.strip()) @@ -208,7 +211,7 @@ class RDPFile: scards = '1' if self.redir_smartcards else '0' printers = '1' if self.redir_printers else '0' compression = '1' if self.compression else '0' - connection_bar = '1' if self.pin_bar else '0' + connection_bar = '1' if self.connection_bar else '0' disable_wallpaper = '0' if self.show_wallpaper else '1' use_multimon = '1' if self.multimon else '0' enable_clipboard = '1' if self.enable_clipboard else '0' diff --git a/server/src/uds/transports/RDP/rdptunnel.py b/server/src/uds/transports/RDP/rdptunnel.py index 3fd3825dd..f31634b5e 100644 --- a/server/src/uds/transports/RDP/rdptunnel.py +++ b/server/src/uds/transports/RDP/rdptunnel.py @@ -171,7 +171,7 @@ class TRDPTransport(BaseRDPTransport): r.multimon = self.multimon.as_bool() r.desktop_composition = self.aero.as_bool() r.smooth_fonts = self.smooth.as_bool() - r.pin_bar = self.show_connection_bar.as_bool() + r.connection_bar = self.show_connection_bar.as_bool() r.enable_credssp_support = self.credssp.as_bool() r.multimedia = self.lnx_multimedia.as_bool() r.alsa = self.lnx_alsa.as_bool()