Ubuntu — Running Two Firefox Intances on Dual Screen (Seprate X Screen — not LargeDesktop or TwinView)

There are benefits and downsides to using separate X screens for dual screen setups vs a “large desktop” which just means the computer thinks there is one desktop, with two monitors showing the same desktop.

Separate X screens means you have an entirely different screen on each monitor. This is useful to me because I can have two SETS of workspaces on each screen. My smaller monitor to the left has 3 workspaces, the large 30″ on the right has 6 screens. I keep my browser, chat, music on the left monitor, and it doesn’t move no matter how much I switch around on my main screen.

With a large desktop or TwinView, you would switch both screens by switching workspaces. So having that second screen doesn’t help THAT much if you already have a large main screen as you’d still need to switch around just to look on your second screen.

Anyways, FireFox complains that you an instance is already running if you try to run firefox on each screen. To get around the problem, start firefox with -P, which runs the profile selector.

Create a new profile and there you go, you have a new firefox instance running on your other screen.

From now on, just start firefox by running firefox -P.

8 Comments

  1. Vincent says:

    Thanks, that -P option was just what i was looking for.
    Now on screen 1 i use the normal link.
    On screen 2 i modded it to firefox %u -P .
    I created a profile screen 2, which i selected.
    Then I unselected to ask for profile at login.
    Now i can just hit the button to start.

  2. Yuji says:

    Vincent:
    Very nice. Thank you for sharing that, I’ll definitely give it a shot!

  3. Jason says:

    Thanks for this useful info. I found the best way is to create 2 profiles, then right click on each monitors launcer and save it as

    firefox %u -P monitor1

    firefox %u -P monitor2

  4. Vincent says:

    This does not seem to work in a Twinview setup.
    Every time I start Firefox now, no matter with what profile, I get the already running profile.

  5. slu says:

    Hadn’t thought of that myself. It works, but is a bit of a workaround.

    I guess modifying the url-handlers for http/https could solve this.

    See http://logicbomblabs.wordpress.com/2009/10/01/how-to-setup-url-handlers-for-gnome-applications/

  6. Xurion says:

    Thanks, it was working for me too 🙂

    @Vincent : you may want to have a look at http://kb.mozillazine.org/Profiles.ini_file

  7. Guchan says:

    Thank you. It helps a lot!

Leave a reply to Xurion Cancel reply