]> git.pld-linux.org Git - packages/iceweasel.git/commitdiff
- drop unsupported --remote; https://bugzilla.mozilla.org/show_bug.cgi?id=1080319...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 29 Jan 2016 22:56:51 +0000 (23:56 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 29 Jan 2016 22:56:51 +0000 (23:56 +0100)
iceweasel.sh

index e574bc01a703a9e4d8c15648908e7e0c73cb39e1..377f7abb9b9d562f80457a485a2047a69371891a 100644 (file)
@@ -24,33 +24,17 @@ done
 ICEWEASEL="$LIBDIR/iceweasel"
 PWD=${PWD:-$(pwd)}
 
-if [ "$1" = "-remote" ]; then
-       exec $ICEWEASEL "$@"
+if [ -z "$1" ]; then
+       exec $ICEWEASEL
 else
-       if ! $ICEWEASEL -remote 'ping()' 2>/dev/null; then
-               if [ -f "$PWD/$1" ]; then
-                       exec $ICEWEASEL "file://$PWD/$1"
-               else
-                       exec $ICEWEASEL "$@"
-               fi
+       if [ -f "$PWD/$1" ]; then
+               URL="file://$PWD/$1"
        else
-               if [ -z "$1" ]; then
-                       exec $ICEWEASEL -remote 'xfeDoCommand(openBrowser)'
-               elif [ "$1" = "-mail" ]; then
-                       exec $ICEWEASEL -remote 'xfeDoCommand(openInbox)'
-               elif [ "$1" = "-compose" ]; then
-                       exec $ICEWEASEL -remote 'xfeDoCommand(composeMessage)'
-               else
-                       if [ -f "$PWD/$1" ]; then
-                               URL="file://$PWD/$1"
-                       else
-                               URL="$1"
-                       fi
-                       if ! grep -q browser.tabs.opentabfor.middleclick.*false ~/.iceweasel/*/prefs.js; then
-                               exec $ICEWEASEL -new-tab "$URL"
-                       else
-                               exec $ICEWEASEL -new-window "$URL"
-                       fi
-               fi
+               URL="$1"
+       fi
+       if ! grep -q browser.tabs.opentabfor.middleclick.*false ~/.iceweasel/*/prefs.js; then
+               exec $ICEWEASEL -new-tab "$URL"
+       else
+               exec $ICEWEASEL -new-window "$URL"
        fi
 fi
This page took 0.077455 seconds and 4 git commands to generate.