Skip to content

Commit efcbd4e

Browse files
authored
Set lang chromiumdriver attribute as an environment var to resolve th… (#1751)
Set lang chromiumdriver attribute as an environment var to resolve this not taking affect in current grid images [deploy]
1 parent 21e7068 commit efcbd4e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

NodeChrome/wrap_chrome_binary

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ umask 002
1414
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"
1515
_EOF
1616
chmod +x "$WRAPPER_PATH"
17+
18+
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
19+
# See: https://stackoverflow.com/a/41893197/359999
20+
for var in "$@"; do
21+
if [[ $var == --lang=* ]]; then
22+
export LANGUAGE=${var//--lang=}
23+
fi
24+
done

NodeEdge/wrap_edge_binary

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ umask 002
1414
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"
1515
_EOF
1616
chmod +x "$WRAPPER_PATH"
17+
18+
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
19+
# See: https://stackoverflow.com/a/41893197/359999
20+
for var in "$@"; do
21+
if [[ $var == --lang=* ]]; then
22+
export LANGUAGE=${var//--lang=}
23+
fi
24+
done

0 commit comments

Comments
 (0)