2 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
4 if [ `arch` == "x86_64" ]; then
5 LIBDIR="/usr/lib64/mozilla-firefox"
7 LIBDIR="/usr/lib/mozilla-firefox"
10 MOZILLA_FIVE_HOME=$LIBDIR
11 if [ "$1" == "-remote" ]; then
14 PING=`$LIBDIR/firefox -remote 'ping()' 2>&1 >/dev/null`
15 if [ -n "$PING" ]; then
16 if [ -f "`pwd`/$1" ]; then
17 $LIBDIR/firefox "file://`pwd`/$1"
23 $LIBDIR/firefox -remote 'xfeDoCommand (openBrowser)'
24 elif [ "$1" == "-mail" ]; then
25 $LIBDIR/firefox -remote 'xfeDoCommand (openInbox)'
26 elif [ "$1" == "-compose" ]; then
27 $LIBDIR/firefox -remote 'xfeDoCommand (composeMessage)'
29 if [ -f "`pwd`/$1" ]; then
34 grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep true > /dev/null
36 $LIBDIR/firefox -remote "OpenUrl($URL,new-tab)"
38 $LIBDIR/firefox -remote "OpenUrl($URL,new-window)"