google-chrome-beta/google-chrome-beta.sh
Knut Ahlers cfc96f65e3
Make config flags XDG compliant
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-05-22 20:54:36 +02:00

11 lines
318 B
Bash

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