if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
# Note: exec -a below is a bashism.
exec -a "$0" "$HERE/chrome" \
--user-data-dir="$CHROME_USER_DATA_DIR" "$@"
else
# exec -a "$0" "$HERE/chrome" "$@"
exec -a "$0" "$HERE/chrome" \
--disable-gpu "$@"
fi
This option will be used by all the chrome and chromedriver sessions