summarylogtreecommitdiffstats
path: root/brave-dev-bin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'brave-dev-bin.sh')
-rwxr-xr-xbrave-dev-bin.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/brave-dev-bin.sh b/brave-dev-bin.sh
index 807bc27efca2..97fad4ee1bb5 100755
--- a/brave-dev-bin.sh
+++ b/brave-dev-bin.sh
@@ -1,9 +1,7 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
-if [ -z "$BRAVE_FLAGS" ]; then
- if [[ ! (-r /proc/sys/kernel/unprivileged_userns_clone && $(< /proc/sys/kernel/unprivileged_userns_clone) == 1 && -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
+if [[ -z "${CHROME_USER_DATA_DIR}" ]]; then
+ export CHROME_USER_DATA_DIR=~/.config/BraveSoftware/Brave-Browser-Dev
fi
-exec "/usr/lib/brave-dev-bin/brave" "$BRAVE_FLAGS" "$FLAG" -- "$@"
+exec "/opt/brave.com/brave-dev/brave-browser" "$BRAVE_FLAGS" "$FLAG" "$@"
+