From a75631392754ed68f20d2c8bb53f627ae4492d52 Mon Sep 17 00:00:00 2001 From: jsa34 Date: Mon, 19 Dec 2022 08:16:44 +0000 Subject: [PATCH] Set lang chromiumdriver attribute as an environment var to resolve this not taking affect in current grid images --- NodeChrome/wrap_chrome_binary | 8 ++++++++ NodeEdge/wrap_edge_binary | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/NodeChrome/wrap_chrome_binary b/NodeChrome/wrap_chrome_binary index 0f01b22ea..d23c0f5f4 100755 --- a/NodeChrome/wrap_chrome_binary +++ b/NodeChrome/wrap_chrome_binary @@ -14,3 +14,11 @@ umask 002 exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@" _EOF chmod +x "$WRAPPER_PATH" + +# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var +# See: https://stackoverflow.com/a/41893197/359999 +for var in "$@"; do + if [[ $var == --lang=* ]]; then + export LANGUAGE=${var//--lang=} + fi +done diff --git a/NodeEdge/wrap_edge_binary b/NodeEdge/wrap_edge_binary index 93a884792..4e998663b 100755 --- a/NodeEdge/wrap_edge_binary +++ b/NodeEdge/wrap_edge_binary @@ -14,3 +14,11 @@ umask 002 exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@" _EOF chmod +x "$WRAPPER_PATH" + +# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var +# See: https://stackoverflow.com/a/41893197/359999 +for var in "$@"; do + if [[ $var == --lang=* ]]; then + export LANGUAGE=${var//--lang=} + fi +done