From 06bd7bb736e0614399bbda1fb0478bfe41bcd873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 7 Apr 2020 15:23:35 +0200 Subject: [PATCH] added setting support for "force on new window" --- server/src/uds/transports/HTML5RDP/html5rdp.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/src/uds/transports/HTML5RDP/html5rdp.py b/server/src/uds/transports/HTML5RDP/html5rdp.py index bf0fa326..d32a6c6f 100644 --- a/server/src/uds/transports/HTML5RDP/html5rdp.py +++ b/server/src/uds/transports/HTML5RDP/html5rdp.py @@ -131,6 +131,13 @@ class HTML5RDPTransport(transports.Transport): minValue=60, tab=gui.ADVANCED_TAB ) + forceNewWindow = gui.CheckBoxField( + label=_('Force new HTML Window'), + order=91, + tooltip=_('If checked, every connection will try to open its own window instead of reusing the "global" one.'), + defvalue=gui.FALSE, + tab=gui.ADVANCED_TAB + ) def initialize(self, values: 'Module.ValuesType'): if not values: @@ -252,8 +259,9 @@ class HTML5RDPTransport(transports.Transport): ticket = models.TicketStore.create(params, validity=self.ticketValidity.num()) return HttpResponseRedirect( - "{}/transport/?{}.{}&{}".format( + "{}/transport/{}?{}.{}&{}".format( self.guacamoleServer.value, + 'o_n_w' if self.forceNewWindow.isTrue() else '', ticket, scrambler, 'javascript:window.close();'