summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-15 21:15:37 -0500
committerzachir <zachir@librem.one>2025-07-15 21:15:37 -0500
commit45b2f55aea9200ce7570b39a68de8287fdd72d94 (patch)
tree535315354fcf48744caa7049de31515285ec67ef
parent6c76650ce84c0aed7bbdea8b2d929b2076aa33a9 (diff)
Make brave-profiles XDG compliant; add URL and profile support
-rwxr-xr-xbrave-profiles7
1 files changed, 4 insertions, 3 deletions
diff --git a/brave-profiles b/brave-profiles
index 31f805a..a034266 100755
--- a/brave-profiles
+++ b/brave-profiles
@@ -11,11 +11,12 @@
# equk 2018 - equk.co.uk
##
# License: MIT (LICENSE file should be included with script)
+# Tweaked by Zach Smith
## variables
-profile_name=${0##*/}
-profile_folder="$HOME/.brave_profiles/$profile_name"
+profile_name=$1
+profile_folder="$HOME/.local/share/brave_profiles/$profile_name"
brave_bin="/usr/bin/brave"
brave_flags="--ssl-version-min=tls1 --enable-smooth-scrolling --enable-tab-audio-muting"
@@ -74,5 +75,5 @@ if [[ -r $profile_folder/Default/Preferences ]]; then
fi
# Execute brave
-exec $brave_bin "$@" --user-data-dir=$profile_folder $brave_flags
+exec $brave_bin $2 --user-data-dir=$profile_folder $brave_flags