summarylogtreecommitdiffstats
path: root/brave-bin.sh
blob: cfc629f8b43f15ee591017bf09e1e4871130b25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"

# Allow users to override command-line options
USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
if [[ -f $USER_FLAGS_FILE ]]; then
   USER_FLAGS="$(cat $USER_FLAGS_FILE | sed 's/#.*//')"
fi

export CHROME_VERSION_EXTRA="stable"

exec /opt/brave-bin/brave "$@" $USER_FLAGS