Why no multiple instances of Firefox on Linux as on Windows?
Pass the --no-remote
parameter to firefox on startup and it won't re-use the existing process.
This is a known issue with firefox on most unix platforms. What seems to happen is firefox queries the X server, sees that another firefox is running (it doesn't even have to be the same version) and sends it a signal to open a new page, rather than actually starting.
It even happens if the second firefox is started on a second machine over SSH with X forwarding enabled. It's a pet peeve of mine which still hasn't been fixed.
- https://bugzilla.mozilla.org/show_bug.cgi?id=378032
- https://bugzilla.mozilla.org/show_bug.cgi?id=376244
- https://bugzilla.mozilla.org/show_bug.cgi?id=346198
- https://bugzilla.mozilla.org/show_bug.cgi?id=448412
Related videos on Youtube
Jack
Updated on September 17, 2022Comments
-
Jack over 1 year
On Windows If I run Firefox as user jack, and then try to start another instance of firefox I will be unable to, as one is already running.
If I choose to run firefox as administrator, then I can have two instances of firefox, separate from each other side by side, because they are under different user accounts.
This does not seem to be true on Linux.
As user jack if I start firefox, like on windows I am unable to start a new instance. If I open a terminal and change to root, set XAUTHORITY to jacks .Xauthority and try to start firefox as root....I get the error that firefox is already running.
Why is this? Please don't spare any technical details in your answers....thankyou.
-
Om Nom Nom almost 14 yearsAfaik, --no-remote can only be used along with -P parameter, so you cannot launch the same profile in different instances. Source: kb.mozillazine.org/Command_line_arguments "no-remote - Enables running multiple instances of the application with different profiles; [1] used with -P"
-
Joey almost 14 years@om nom: Sounds reasonable, given that they still use that broken profile concept from the Dark Ages of Netscape on Windows 9x.
-
Jack almost 14 yearsInteresting, thankyou. So this is a firefox specific bug, rather than any difference in the process model between Windows and Linux?
-
Chopsy almost 14 years@OmNomNom: Only a problem if using the same user account. The OP is trying to use one instance as jack and another as root, each would use it's default profile from the corresponding home directory. And in my case, the profile is on another machine entirely.
-
Chopsy almost 14 years@Jack It's to do with how firefox does things. Has nothing to do with the process model.