google-chrome-dev/google-chrome-unstable.sh
Knut Ahlers 8ab5885e80
Make config flags XDG compliant
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-05-22 20:58:37 +02:00

11 lines
324 B
Bash

#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/chrome-dev-flags.conf ]]; then
CHROME_USER_FLAGS="$(cat $XDG_CONFIG_HOME/chrome-dev-flags.conf)"
fi
# Launch
exec /opt/google/chrome-unstable/google-chrome-unstable $CHROME_USER_FLAGS "$@"