From 1e43f69be26f77c2ba07261a9cddc062cfe04a0a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Mar 2019 10:36:58 -0300 Subject: Always start the new instance at firefox-profile --- firefox-profile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firefox-profile b/firefox-profile index a738ede..8e5e490 100755 --- a/firefox-profile +++ b/firefox-profile @@ -15,15 +15,15 @@ fi # Dispatch if [ ! -z "$1" ] && [ "$1" != "template" ]; then - if [ -d "$PROFILES/$1" ]; then - firefox -p $1 -new-instance & - else + if [ ! -d "$PROFILES/$1" ]; then firefox -CreateProfile "$1 $PROFILES/$1" if [ -d "$PROFILES/template" ]; then rm -rf $PROFILES/$1 && cp -a $PROFILES/template $PROFILES/$1 fi fi + + firefox -p $1 -new-instance & else - firefox --profilemanager -new-instance + firefox --profilemanager -new-instance & fi -- cgit v1.2.3