2020-11-01 15:57:10 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-09-06 00:18:31 +02:00
|
|
|
|
|
|
|
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
|
|
BRAVE_USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
|
|
|
|
if [[ -f $BRAVE_USER_FLAGS_FILE ]]; then
|
2020-11-13 23:22:53 +01:00
|
|
|
USER_FLAGS="$(sed 's/#.*//' < "$BRAVE_USER_FLAGS_FILE")"
|
2020-09-06 00:18:31 +02:00
|
|
|
fi
|
|
|
|
|
2020-11-13 23:22:53 +01:00
|
|
|
/usr/bin/brave "$@" "$USER_FLAGS"
|