summarylogtreecommitdiffstats
path: root/brave-bin.sh
blob: 293a314538f64772a7ee1e99379b70d0175454c7 (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 /usr/lib/brave-bin/brave "$@" $USER_FLAGS