aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchromium-profile16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium-profile b/chromium-profile
new file mode 100755
index 0000000..c7fb573
--- /dev/null
+++ b/chromium-profile
@@ -0,0 +1,16 @@
+#
+# Wrapper around chromium to enable extensions
+# See https://wiki.debian.org/Chromium#Extensions
+# https://www.chromium.org/developers/creating-and-using-profiles
+
+# Check
+if [ -z "$1" ]; then
+ cat $0
+ exit 1
+fi
+
+PROFILE="~/.config/chromium-profiles/$1"
+
+if which chromium 2> /dev/null; then
+ CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions" chromium --user-data-dir="$PROFILE" $*
+fi