From ecf7d3f9254f2c6e8b55d6c3ae4003c05bc15e61 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 24 Sep 2017 13:24:25 -0300 Subject: Minor enhancement at chromium-profile --- chromium-profile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chromium-profile') diff --git a/chromium-profile b/chromium-profile index 513e615..c815a0e 100755 --- a/chromium-profile +++ b/chromium-profile @@ -9,9 +9,11 @@ if [ -z "$1" ]; then exit 1 fi -PROFILE="~/.config/chromium-profiles/$1" -shift - if which chromium 2> /dev/null; then + BASE="~/.config/chromium-profiles" + PROFILE="$BASE/$1" + mkdir -p $PROFILE + shift + CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions" chromium --user-data-dir="$PROFILE" $* fi -- cgit v1.2.3