Skip to content

Commit

Permalink
Set lang chromiumdriver attribute as an environment var to resolve th… (
Browse files Browse the repository at this point in the history
#1751)

Set lang chromiumdriver attribute as an environment var to resolve this not taking affect in current grid images

[deploy]
  • Loading branch information
jsa34 authored Dec 19, 2022
1 parent 21e7068 commit efcbd4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NodeChrome/wrap_chrome_binary
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions NodeEdge/wrap_edge_binary
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit efcbd4e

Please sign in to comment.