# # Wrapper around chromium to enable extensions # See https://wiki.debian.org/Chromium#Extensions # https://www.chromium.org/developers/creating-and-using-profiles # https://www.chromium.org/Home/chromium-security/site-isolation # Check if [ -z "$1" ]; then cat $0 exit 1 fi if which chromium 2> /dev/null; then BASE="$HOME/.config/chromium-profiles" PROFILE="$BASE/$1" # 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" $* fi