You are here

Portable opens pages in desktop FF if desktop FF already open

9 posts / 0 new
Last post
Cman139
Offline
Last seen: 11 years 5 months ago
Joined: 2012-12-11 15:58
Portable opens pages in desktop FF if desktop FF already open

1. USB contains FFPortable and a www folder containing index.html
2. I run FFP with index.html on the command line. Sort of like this:
FirefoxPortable index.html
If the desktop already has a copy of the desktop version of FF running, then the index.html file is open in the desktop instead of being open in the USB FF. Of course the USB FF has all the plugins needed to view index.html.

I've tried adding -new-window to the command line but it just opened a new window on the desktop instance.

So I need to either instruct users to close any copies of FF before plugging in USB.
OR
have index.html JS detect which FF it is running in. However, I cannot figure out how to do this? JS doesn't seem to have any way to detect a distinction. I would be nice if I could set a preference value - but not possible.
OR, IDEALLY,
Have FirefoxPortable.exe actually run its copy off FF that is on the USB. How can I force that?

Sorry, long question. Any suggestions are appreciated.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 58 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
INI?

firefox only supports one instance (though multiple windows) by default. did you change anything in the firefoxportable.ini?

Sometimes, the impossible can become possible, if you're awesome!

Cman139
Offline
Last seen: 11 years 5 months ago
Joined: 2012-12-11 15:58
I didn't change that

I didn't change that file.

But if FF only supports one instance, I have come to accept that.
Thanks.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 58 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Default

By default, Firefox Portable shows an alert that another instance of Firefox is already running. Does that not happen when you run FirefoxPortable.exe?

Sometimes, the impossible can become possible, if you're awesome!

depp.jones
Offline
Last seen: 9 hours 2 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
I don't get that alert any

I don't get that alert any more. When I launch FirefoxPortable.exe while my local FF is running it is killed almost instantly and another window of my local FF is opened instead (no other instance).

Without a local FF running, the portable version is launched as expected.

Strange... has something changed in the launcher or have Mozilla added detection for FirefoxPortable.exe. Wink
Is there a debug option for the (custom) launcher?

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 58 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Nope

Nothing new. It alerts as expected for me. What OS, antivirus, etc are you running? Are you sure you have no FirefoxPortable.ini alongside FirefoxPortable.exe? How are you launching it?

Sometimes, the impossible can become possible, if you're awesome!

depp.jones
Offline
Last seen: 9 hours 2 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
I didn't touch this FF

I didn't touch this FF Portable for a while but just let it update with the platform. No FirefoxPortable.ini, launched under WinXP SP3 from my local hard disk (D:\PortableApps). It makes no difference launching it standalone or from the platform. MSSE has no alerts.

I did some quick testing, all with 17.0.1 Portable in D:\PortableApps (local hdd).
A vanilla FF Portable produces the alert for another instance already running.
My old FF Portable does not produce it but opens another window of the local FF.
After running the vanilla FF Portable once (just to let it create its settings, nothing altered manually) it behaves the same as the old FF Portable (no alert but new window of the local FF).

Launching FF Portable from my USB-Drive produced the alert at first until I launched it once without the local FF running. Afterwards it switched to opening new windows...

Maybe it's just my machine, I can do some testing tomorrow when I have access to another pc.

mgagnonlv
Offline
Last seen: 1 year 1 month ago
Joined: 2008-04-04 21:51
Same here

I have similar behaviour here. Although I cannot test it now, I think that the "you can't open another instance" window would be open on a computer that does NOT have Firefox installed.
However, I have worked for years with computers that have non-portable Firefox installed and set as my default browser. Clicking the Portable Firefox icon – or the taskbar icon of the regular Firefox – opens another instance of whatever Firefox version is currently open.

Michel Gagnon
Montréal (Québec, Canada)

depp.jones
Offline
Last seen: 9 hours 2 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
Tested on different computers

Hi John, I did some testing with a fresh install of the platform and FF Portable on an empty USB-Stick. I tried several PCs with WinXP SP3 or Vista Business.
Every time the same behaviour:
It works as expected (alert) as long as it has not been run once to create its data folder.
If it has been run and its settings have been created, it starts opening new windows, if another firefox is running already.
I can reproduce this in both directions. If FF Portable is running, starting the local FF just opens another window of FF Portable as well.
It even works with FF Portable 17.0.l and FF Portable 18 beta.
Like in this matrix:

   running     ->    starting             -> result
-------------------------------------------------------
1. FF local    -> 2. FF Portable new       -> alert
1. FF local    -> 2. FF Portable used      -> new window
1. FF Portable -> 2. FF Portable beta new  -> alert
1. FF Portable -> 2. FF Portable beta used -> new window
1. FF Portable -> 2. FF local              -> new window

As long as FF (Portable) has been run at least once, this bug occurs. I have no VM at hand atm to test, if a new FF local would still produce the alert.
-edit-
forgot to close pre

Log in or register to post comments