From f5fa04d331fac3560bb31b7b4d5bd30088f7693d Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Thu, 28 Mar 2024 21:53:29 +0000 Subject: [PATCH] GUACAMOLE-1931: Add configuration option to allow overwriting typescript files. --- .../resources/org/apache/guacamole/protocols/kubernetes.json | 5 +++++ .../main/resources/org/apache/guacamole/protocols/ssh.json | 5 +++++ .../resources/org/apache/guacamole/protocols/telnet.json | 5 +++++ guacamole/src/main/frontend/src/translations/en.json | 4 ++++ 4 files changed, 19 insertions(+) diff --git a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/kubernetes.json b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/kubernetes.json index 266d9f2718..c0f23eb507 100644 --- a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/kubernetes.json +++ b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/kubernetes.json @@ -122,6 +122,11 @@ "name" : "create-typescript-path", "type" : "BOOLEAN", "options" : [ "true" ] + }, + { + "name" : "typescript-write-existing", + "type" : "BOOLEAN", + "options" : [ "true" ] } ] }, diff --git a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/ssh.json b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/ssh.json index 34b1ed5b77..3f27172c88 100644 --- a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/ssh.json +++ b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/ssh.json @@ -140,6 +140,11 @@ "name" : "create-typescript-path", "type" : "BOOLEAN", "options" : [ "true" ] + }, + { + "name" : "typescript-write-existing", + "type" : "BOOLEAN", + "options" : [ "true" ] } ] }, diff --git a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json index 679d120fbd..42640b5ebb 100644 --- a/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json +++ b/guacamole-ext/src/main/resources/org/apache/guacamole/protocols/telnet.json @@ -122,6 +122,11 @@ "name" : "create-typescript-path", "type" : "BOOLEAN", "options" : [ "true" ] + }, + { + "name" : "typescript-write-existing", + "type" : "BOOLEAN", + "options" : [ "true" ] } ] }, diff --git a/guacamole/src/main/frontend/src/translations/en.json b/guacamole/src/main/frontend/src/translations/en.json index 5a2ecfdf48..ade20a940c 100644 --- a/guacamole/src/main/frontend/src/translations/en.json +++ b/guacamole/src/main/frontend/src/translations/en.json @@ -46,6 +46,7 @@ "FIELD_HEADER_PASSWORD" : "Password:", "FIELD_HEADER_PASSWORD_AGAIN" : "Re-enter Password:", "FIELD_HEADER_RECORDING_WRITE_EXISTING" : "Allow writing to existing recording file:", + "FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING" : "Allow writing to existing typescript file:", "FIELD_PLACEHOLDER_FILTER" : "Filter", @@ -524,6 +525,7 @@ "FIELD_HEADER_SCROLLBACK" : "Maximum scrollback size:", "FIELD_HEADER_TYPESCRIPT_NAME" : "Typescript name:", "FIELD_HEADER_TYPESCRIPT_PATH" : "Typescript path:", + "FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING" : "@:APP.FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING", "FIELD_HEADER_USE_SSL" : "Use SSL/TLS", "FIELD_OPTION_BACKSPACE_EMPTY" : "", @@ -753,6 +755,7 @@ "FIELD_HEADER_TIMEZONE" : "Time zone ($TZ):", "FIELD_HEADER_TYPESCRIPT_NAME" : "Typescript name:", "FIELD_HEADER_TYPESCRIPT_PATH" : "Typescript path:", + "FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING" : "@:APP.FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING", "FIELD_HEADER_WOL_BROADCAST_ADDR" : "Broadcast address for WoL packet:", "FIELD_HEADER_WOL_MAC_ADDR" : "MAC address of the remote host:", "FIELD_HEADER_WOL_SEND_PACKET" : "Send WoL packet:", @@ -837,6 +840,7 @@ "FIELD_HEADER_TERMINAL_TYPE" : "Terminal type:", "FIELD_HEADER_TYPESCRIPT_NAME" : "Typescript name:", "FIELD_HEADER_TYPESCRIPT_PATH" : "Typescript path:", + "FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING" : "@:APP.FIELD_HEADER_TYPESCRIPT_WRITE_EXISTING", "FIELD_HEADER_WOL_BROADCAST_ADDR" : "Broadcast address for WoL packet:", "FIELD_HEADER_WOL_MAC_ADDR" : "MAC address of the remote host:", "FIELD_HEADER_WOL_SEND_PACKET" : "Send WoL packet:",