aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchromium-profile8
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium-profile b/chromium-profile
index 513e615..c815a0e 100755
--- a/chromium-profile
+++ b/chromium-profile
@@ -9,9 +9,11 @@ if [ -z "$1" ]; then
exit 1
fi
-PROFILE="~/.config/chromium-profiles/$1"
-shift
-
if which chromium 2> /dev/null; then
+ BASE="~/.config/chromium-profiles"
+ PROFILE="$BASE/$1"
+ mkdir -p $PROFILE
+ shift
+
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions" chromium --user-data-dir="$PROFILE" $*
fi