aboutsummaryrefslogtreecommitdiff
path: root/chromium-profile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-24 12:54:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-24 12:54:52 -0300
commit0d9a256fec8cd3a2d696d7d3c34c1ae11730f3e9 (patch)
treee8d8364bed73aa7e487bfc02586f29efa7079ae8 /chromium-profile
parent4b7aaa0857aaf85334c9bb1870622a3a69412488 (diff)
downloadutils-x11-0d9a256fec8cd3a2d696d7d3c34c1ae11730f3e9.tar.gz
utils-x11-0d9a256fec8cd3a2d696d7d3c34c1ae11730f3e9.tar.bz2
Adds chromium-profile
Diffstat (limited to 'chromium-profile')
-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