Re: Starting Firefox with a new tab

From: SINNER (99nesorjd_at_gates_of_hell.invalid)
Date: 09/09/04


Date: Thu, 09 Sep 2004 13:17:10 GMT


* Martin Braun wrote in alt.os.linux:
> Hi,

> i use Mozilla Thunderbird and Firefox for Mailing/Browsing. If i want to
> open a link e.g from an E-Mail in Thunderbird while the Browser is
> already running i have to switch the Firefox profile.
> Is it possible to load a link directly into a new tab on Firefox
> by using a command line switch? I did not found any possibility so far.

You dont say what version of Firefox you use, I use a slightly older
version so the below script needs a slight mod to work on recent
versions. Set your mail client to call the script as your browser.

I dont recall the exact change but searching this group on google should
yield the correct syntax.

if pgrep -u "$USER" firefox >/dev/null; then
  /usr/bin/firefox -remote "openurl(${@}, new-tab)"
  else
    /usr/bin/firefox "$@"
    fi

-- 
David                 |	AGM Favorites - http://tinyurl.com/loec 
Microsoft should switch to the vacuum cleaner business where people actually
want products that suck.


Relevant Pages

  • Re: Firefox kicks ass
    ... >> it a really cool browser, and much more customizable than Mozilla, ... > they were to use Firefox and come across a website designed for IE, ... If you work with Linux ... > So, when companies switch... ...
    (comp.os.linux)
  • Camino v Firefox?
    ... choice between using Camino and Firefox as one's browser. ... I want to switch all browsing to a modern browser, ... academic personas. ...
    (uk.comp.sys.mac)
  • Re: How to change default web browser in Entourage
    ... How to swtich from Safari is covered here, but I want to switch my ... default browser from IE 5.0 to Firefox, which I am becoming more and ...
    (microsoft.public.mac.office.entourage)
  • Start Menu - Most Frequently Used algorithm - biased against Firefox?
    ... I used "setup program accessories and defaults" to switch my default ... browser between Mozilla Firefox and Internet Explorer. ... Firefox, it does not. ...
    (microsoft.public.windowsxp.customize)
  • Re: Starting Firefox with a new tab
    ... >>already running i have to switch the Firefox profile. ... >>Is it possible to load a link directly into a new tab on Firefox ... > version so the below script needs a slight mod to work on recent ...
    (alt.os.linux)