summarylogtreecommitdiffstats
path: root/brave-dev-bin.sh
blob: de1118489239a3ccdbbe0fe44f142de9ec456cb2 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env sh

if [[ ! -n $(zcat /proc/config.gz | grep CONFIG_USER_NS=y)  ]]; then
    >&2 echo "User namespaces are not detected as enabled on your system, brave will run with the sandbox disabled"
    FLAG="--no-sandbox"
fi

exec "/usr/lib/brave-dev-bin/brave" "$FLAG" -- "$@"