April 28th, 2004

Opening URLs in Moz Firefox

Web, by Donncha.

Does anyone else have problems sending commands to a running instance of Mozilla Firefox?
I want Thunderbird to open links in new Firefox tabs but the following command fails:

$ mozilla -remote "openurl(http://www.mozilla.org, new-tab)"
Failed to send command.
$

If I don’t include a URL then a dialog pops up asking for one but that’s hardly what I want to happen. Google hasn’t been too helpful, but maybe someone reading this has come across this already!

You might also like

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos and funny videos to explore too!

Back Top

Responses to “Opening URLs in Moz Firefox”

  1. This script seems to work nicely for me.


    #!/bin/sh
    export MOZILLA_FIVE_HOME="/usr/lib/MozillaFirefox/"

    url="$1"
    if [ "x$url" = "x" ]; then
    url="about:blank"
    fi

    if $MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\("$url",new-tab\); then
    exit 0
    fi
    exec $MOZILLA_FIVE_HOME/firefox "$url"

    The only problem I have is that it opens a locally cached copy (file://cache.file.name) instead of the actual URL. This is annoying because any links that aren’t absolutely linked don’t work. I’m still searching for an answer to that one.

  1. No trackbacks yet.

Leave a Reply

Back Top


Holy Shmoly! is Digg proof thanks to caching by WP Super Cache