使用 -no-remote 开关启动多个 Firefox(便携式)实例不起作用

Dan*_*iel 6 firefox portable windows-10 windows-10-v1709

安装了正在运行的 Firefox 后,我想启动从heise下载的 Firefox Portable 。在 Windows 上,我正在运行此处FirefoxPortable.exe -no-remote发布的程序,但总是收到错误:另一个 Firefox 实例已在运行。在尝试启动 Firefox Portable Edition 之前,请关闭 Firefox 的所有其他实例

我尝试过的事情:

set MOZ_NO_REMOTE=1
FirefoxPortable.exe -CreateProfile test -no-remote
FirefoxPortable.exe -ProfileManager -no-remote 
Run Code Online (Sandbox Code Playgroud)

这不是这个问题的重复,因为作者似乎启动了同一 Firefox 安装的两个实例(也具有相同的默认配置文件)。就我而言,我安装了一个 Firefox 实例(默认配置文件文件夹%APPDATA%\Mozilla\Firefox\Profiles)。Data\profile便携式火狐似乎使用相对于 的路径FirefoxPortable.exe

如何启动多个 Firefox 实例?Firefox 文档-no-remote中的切换不再起作用了吗?

我正在使用最新的便携式版本 65 的 Firefox。

Ent*_*py0 7

方法 1 - 标志

经过我自己的测试,这个答案中提供的解决方案确实也适用于两种不同的 Firefox 安装: 编辑:根据 OP,这不适用于他们的设置。然而,第二种方法可以。

firefox -no-remote -profile "profile_path"
Run Code Online (Sandbox Code Playgroud)

因此,如果您已经拥有常规 FF 运行的运行实例并且还想打开便携版,那么您可以这样做

FirefoxPortable.exe -no-remote -profile "Data\profile"
Run Code Online (Sandbox Code Playgroud)

相反,要打开已运行的便携式程序的常规安装,您需要这样做

firefox.exe -no-remote -profile "%APPDATA%\Mozilla\Firefox\Profiles"
Run Code Online (Sandbox Code Playgroud)

(实际上,我只使用绝对配置文件进行了测试,并且我已经关闭了我的 Windows PC。您可能需要替换%APPDATA%为实际路径。)


方法 2 - .ini

启动 FF 可移植的多个实例的另一种方法是添加

AllowMultipleInstances=true
Run Code Online (Sandbox Code Playgroud)

到与FirefoxPortable.ini.exe 相同的文件夹中(如果尚不存在则创建它),根据文档,它会使用该标志自动-no-remote为您调用它(但使用此方法并不能保证使用单独的配置文件) 。