]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Support for starting the template template at firefox-profile
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Mar 2019 13:40:11 +0000 (10:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Mar 2019 13:40:11 +0000 (10:40 -0300)
firefox-profile

index 8e5e490c4f3b605ea7d543581a20cf2298987e7c..a5dc54531b66d2cf210b912f31ddee10b8ea5fb0 100755 (executable)
@@ -14,11 +14,13 @@ if ! which firefox &> /dev/null; then
 fi
 
 # Dispatch
-if [ ! -z "$1" ] && [ "$1" != "template" ]; then
+#if [ ! -z "$1" ] && [ "$1" == "private" ]; then
+#  firefox -private
+if [ ! -z "$1" ]; then
   if [ ! -d "$PROFILES/$1" ]; then
     firefox -CreateProfile "$1 $PROFILES/$1"
 
-    if [ -d "$PROFILES/template" ]; then
+    if [ -d "$PROFILES/template" ] && [ "$1" != "template" ]; then
       rm -rf $PROFILES/$1 && cp -a $PROFILES/template $PROFILES/$1
     fi
   fi