]> git.pld-linux.org Git - packages/mozilla-firefox-bin.git/blobdiff - mozilla-firefox-bin.sh
up to 80.0
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.sh
index 3bb3a0490237d61c5c9d72870cb28c5c29ee6edc..b5ed2b973691097896cb4746564937fb1bd2d545 100644 (file)
@@ -49,35 +49,14 @@ else
        FIREFOX="$LIBDIR/firefox"
 fi
 
-if [ "$1" == "-remote" ]; then
-       exec $FIREFOX "$@"
+if [ -f "`pwd`/$1" ]; then
+       URL="file://`pwd`/$1"
 else
-       PING=`$FIREFOX -remote 'ping()' 2>&1 >/dev/null`
-       if [ -n "$PING" ]; then
-               if [ -f "`pwd`/$1" ]; then
-                       exec $FIREFOX "file://`pwd`/$1"
-               else
-                       exec $FIREFOX "$@"
-               fi
-       else
-               if [ -z "$1" ]; then
-                       exec $FIREFOX -remote 'xfeDoCommand(openBrowser)'
-               elif [ "$1" == "-mail" ]; then
-                       exec $FIREFOX -remote 'xfeDoCommand(openInbox)'
-               elif [ "$1" == "-compose" ]; then
-                       exec $FIREFOX -remote 'xfeDoCommand(composeMessage)'
-               else
-                       if [ -f "`pwd`/$1" ]; then
-                               URL="file://`pwd`/$1"
-                       else
-                               URL="$1"
-                       fi
-                       grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep false > /dev/null
-                       if [ $? -ne 0 ]; then
-                               exec $FIREFOX -new-tab "$URL"
-                       else
-                               exec $FIREFOX -new-window "$URL"
-                       fi
-               fi
-       fi
+       URL="$1"
+fi
+grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep false > /dev/null
+if [ $? -ne 0 ]; then
+       exec $FIREFOX -new-tab "$URL"
+else
+       exec $FIREFOX -new-window "$URL"
 fi
This page took 0.052492 seconds and 4 git commands to generate.