]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds chromium-profile
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 24 Sep 2017 15:54:52 +0000 (12:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 24 Sep 2017 15:54:52 +0000 (12:54 -0300)
chromium-profile [new file with mode: 0755]

diff --git a/chromium-profile b/chromium-profile
new file mode 100755 (executable)
index 0000000..c7fb573
--- /dev/null
@@ -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