firefox - how can I have different launchers with unique home pages

Discussion in 'Firefox' started by wayne, Feb 23, 2005.

  1. wayne

    wayne Guest

    I have firefox running on Redhat 9. I'd like to have multiple
    launchers start firefox with a different home page for each.
    Is there a switch I can use that directs which web page to display?


    -- Wayne.
    wayne, Feb 23, 2005
    1. Advertisements

  2. Write as many shell scripts as launcher you would like to have, with the
    following content. Then, make the launchers point to these scripts.



    #get URL to load
    url=$1; [ -z $url ] && url=

    $firefoxpath -remote 'openURL('$url', new-window)' || $firefoxpath $url &

    Replace the firefoxpath with what's valid on your system and the url
    variable with what you need.

    Hope this helps.


    P.S. The -remote switch ensures that each time you use this script, it
    actually opens a new window in Firefox rather than invoking a new
    instance of Firefox (which leads to problems regarding your profile). By
    changing new-window to new-tab, for example, you could make the scripts
    open your home pages to a new tab instead of a new window.
    Thomas Guignard, Feb 23, 2005
    1. Advertisements

  3. wait, I'm an idiot. You only need one script like this, with the default
    url inside. To open other urls, simply pass the url as parameter. If
    your script is named for example, then you can use

    Thomas Guignard, Feb 23, 2005
  4. wayne

    wayne Guest

    I think you are being a little harsh on yourself Tom ;-)
    That worked exactly perfect. If run from the command line,
    and firefox is not currently running, the following is generated:

    Error: No running window found

    This is not seen while using as a launcher, so it is no big deal.

    Thanks Tom,

    -- Wayne.
    wayne, Feb 23, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.