]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Always start the new instance at firefox-profile
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Mar 2019 13:36:58 +0000 (10:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Mar 2019 13:36:58 +0000 (10:36 -0300)
firefox-profile

index a738edeb35d62f013f300462a8ffecb288fdadd7..8e5e490c4f3b605ea7d543581a20cf2298987e7c 100755 (executable)
@@ -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