]> git.pld-linux.org Git - packages/mozilla-firefox-bin.git/blobdiff - mozilla-firefox-bin.sh
- up to 16.0.2
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.sh
index 378a634c2b1bf977b9add5c44b0f6193b7a54006..3bb3a0490237d61c5c9d72870cb28c5c29ee6edc 100644 (file)
@@ -3,6 +3,8 @@
 
 LIBDIR="@LIBDIR@/mozilla-firefox-bin"
 
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR
+
 MOZILLA_FIVE_HOME=$LIBDIR
 
 MOZARGS=
@@ -35,7 +37,7 @@ fi
 # compreg.dat and/or chrome.rdf will screw things up if it's from an
 # older version.  http://bugs.gentoo.org/show_bug.cgi?id=63999
 for f in ~/{.,.mozilla/}firefox/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do
-       if [[ -f ${f} && ${f} -ot /usr/bin/mozilla-firefox ]]; then
+       if [[ -f ${f} && ${f} -ot /usr/bin/mozilla-firefox-bin ]]; then
                echo "Removing ${f} leftover from older firefox"
                rm -f "${f}"
        fi
@@ -70,8 +72,8 @@ else
                        else
                                URL="$1"
                        fi
-                       grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep true > /dev/null
-                       if [ $? -eq 0 ]; then
+                       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"
This page took 0.087607 seconds and 4 git commands to generate.