Skip to content

Commit

Permalink
Support google chrome --lang argument. Fixes elgalu#159
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Pearson committed Jun 21, 2017
1 parent cd0ce13 commit 0887fdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions selenium-node-chrome/opt/google/chrome/google-chrome
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

# 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
echo found lang var! $var
export LANGUAGE=${var//--lang=}
fi
done

exec /opt/google/chrome/google-chrome-base "$@" ${CHROME_ARGS} ${CHROME_ADDITIONAL_ARGS}

# See: On How To Turn Chrome or Firefox Into A Single-Site Browser
Expand Down

0 comments on commit 0887fdd

Please sign in to comment.