From 0d9a256fec8cd3a2d696d7d3c34c1ae11730f3e9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 24 Sep 2017 12:54:52 -0300 Subject: Adds chromium-profile --- chromium-profile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 chromium-profile (limited to 'chromium-profile') 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 -- cgit v1.2.3