summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2017-04-24 13:26:59 +0200
committerAndras Timar <andras.timar@collabora.com>2017-04-24 13:26:59 +0200
commit20a87b885fdc52939d39db4ea9636a51b7ced6a7 (patch)
treec2f78d61c44b9abb8b50a1d86bf9f19ecb1c916c
parentd6ca887de38b3989ec1759f69ebcb390af5b6c1d (diff)
open-url script, don't use -remote, reportedly this works bettercp-5.0-42
Change-Id: I6933ca624324afff1f7a98f6407112685e9a4aaf
-rwxr-xr-xshell/source/unix/misc/open-url.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/shell/source/unix/misc/open-url.sh b/shell/source/unix/misc/open-url.sh
index 98a4d3fe00bc..8cfcf0e09358 100755
--- a/shell/source/unix/misc/open-url.sh
+++ b/shell/source/unix/misc/open-url.sh
@@ -33,18 +33,7 @@ which() {
# checks for the original mozilla start script(s)
# and restrict the "-remote" semantics to those.
run_mozilla() {
- if file "$1" | grep script > /dev/null && grep NPL "$1" > /dev/null; then
- "$1" -remote 'ping()' 2>/dev/null >/dev/null
- if [ $? -eq 2 ]; then
- "$1" "$2" &
- else
- "$1" -remote \
- "openURL($(printf '%s' "$2" \
- | sed -e 's/(/%28/g' -e 's/)/%29/g' -e 's/,/%2C/g'),new-window)" &
- fi
- else
- "$1" "$2" &
- fi
+ "$1" -new-tab "$2" &
}
# special handling for mailto: uris