aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-03-09 10:36:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-03-09 10:36:58 -0300
commit1e43f69be26f77c2ba07261a9cddc062cfe04a0a (patch)
treebb82bd9ec8c54416056a98f8e2c1a98c47deef9b
parentfa7e46cc65d0063c839fd4495b893b67760e3630 (diff)
downloadutils-x11-1e43f69be26f77c2ba07261a9cddc062cfe04a0a.tar.gz
utils-x11-1e43f69be26f77c2ba07261a9cddc062cfe04a0a.tar.bz2
Always start the new instance at firefox-profile
-rwxr-xr-xfirefox-profile8
1 files 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