diff options
| -rwxr-xr-x | chromium-profile | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/chromium-profile b/chromium-profile index 07c7428..ff2d832 100755 --- a/chromium-profile +++ b/chromium-profile @@ -13,7 +13,14 @@ fi  if which chromium 2> /dev/null; then    BASE="$HOME/.config/chromium-profiles"    PROFILE="$BASE/$1" -  mkdir -p "$PROFILE" + +  # Copy default profile if available, or start a new one +  if [ ! -d "$PROFILE" ] && [ -d "$BASE/default" ]; then +    cp -a "$BASE/default" "$PROFILE" +  else +    mkdir -p "$PROFILE" +  fi +    shift    CHROMIUM_FLAGS="$CHROMIUM_FLAGS --site-per-process --enable-remote-extensions" chromium --user-data-dir="$PROFILE" $*  | 
