]> git.pld-linux.org Git - packages/firefox.git/commitdiff
- update for amd64 send by Piotr Budny <vipw at valkyrie.one.pl>
authorMarcin Krzyżanowski <marcin.krzyzanowski@hakore.com>
Thu, 13 Jan 2005 13:04:36 +0000 (13:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mozilla-firefox.sh -> 1.2

mozilla-firefox.sh

index 96b867f2fc84a098b5c69c7e7318cf5e8646b069..05f25ba423f0eaf59a0ea6869a0332b32a3f4519 100644 (file)
@@ -1,24 +1,30 @@
 #!/bin/sh
 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
 
-MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
+if [ `arch` == "x86_64" ]; then
+       LIBDIR="/usr/lib64/mozilla-firefox"
+else
+       LIBDIR="/usr/lib/mozilla-firefox"
+fi
+
+MOZILLA_FIVE_HOME=$LIBDIR
 if [ "$1" == "-remote" ]; then
-       /usr/lib/mozilla-firefox/firefox "$@"
+       $LIBDIR/firefox "$@"
 else
-       PING=`/usr/lib/mozilla-firefox/firefox -remote 'ping()' 2>&1 >/dev/null`
+       PING=`$LIBDIR/firefox -remote 'ping()' 2>&1 >/dev/null`
        if [ -n "$PING" ]; then
                if [ -f "`pwd`/$1" ]; then
-                       /usr/lib/mozilla-firefox/firefox "file://`pwd`/$1"
+                       $LIBDIR/firefox "file://`pwd`/$1"
                else
-                       /usr/lib/mozilla-firefox/firefox "$@"
+                       $LIBDIR/firefox "$@"
                fi
        else
                if [ -z "$1" ]; then
-                       /usr/lib/mozilla-firefox/firefox -remote 'xfeDoCommand (openBrowser)'
+                       $LIBDIR/firefox -remote 'xfeDoCommand (openBrowser)'
                elif [ "$1" == "-mail" ]; then
-                       /usr/lib/mozilla-firefox/firefox -remote 'xfeDoCommand (openInbox)'
+                       $LIBDIR/firefox -remote 'xfeDoCommand (openInbox)'
                elif [ "$1" == "-compose" ]; then
-                       /usr/lib/mozilla-firefox/firefox -remote 'xfeDoCommand (composeMessage)'
+                       $LIBDIR/firefox -remote 'xfeDoCommand (composeMessage)'
                else
                        if [ -f "`pwd`/$1" ]; then
                                URL="file://`pwd`/$1"
@@ -27,9 +33,9 @@ else
                        fi
                        grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep true > /dev/null
                        if [ 0 -eq 0 ]; then
-                               /usr/lib/mozilla-firefox/firefox -remote "OpenUrl($URL,new-tab)"
+                               $LIBDIR/firefox -remote "OpenUrl($URL,new-tab)"
                        else
-                               /usr/lib/mozilla-firefox/firefox -remote "OpenUrl($URL,new-window)"
+                               $LIBDIR/firefox -remote "OpenUrl($URL,new-window)"
                        fi
                fi
        fi
This page took 0.843065 seconds and 4 git commands to generate.