为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to open a new window from the CLI, not from the default profile

  • 3 个回答
  • 1 人有此问题
  • 16 次查看
  • 最后回复者为 John99

more options

Hi

I tried to open a new FF window but with a special profile.

I have a main FF instance running, using the default profile.

Let's say I open a new instance using no-remote option like this :

firefox -no-remote -P "prism" http://www.mozilla.org

Now I want to open a new window using the prism profile. CTRL+N works, but I need it from the CLI. Something like this :

firefox -new-window -P "prism" http://www.newurl.com

But it doesn't works, it tries to launch a new process, which fail : I already have a process running.

Thanks for your help

Hi I tried to open a new FF window but with a special profile. I have a main FF instance running, using the default profile. Let's say I open a new instance using no-remote option like this : firefox -no-remote -P "prism" http://www.mozilla.org Now I want to open a new window using the prism profile. CTRL+N works, but I need it from the CLI. Something like this : firefox -new-window -P "prism" http://www.newurl.com But it doesn't works, it tries to launch a new process, which fail : I already have a process running. Thanks for your help

所有回复 (3)

more options

Using -no-remote allows you to open another instance of firefox. Once that is running you may open new windows from within Firefox.

You may not run yet another instance of Firefox from a profile that is in use, Firefox locks the profile. Using a plain Firefox from the CLI whilst Firefox is open will open a new Firefox window in the profile in use so use

more options

Hi John

Well the thing is, in that case, it opens a new window with the default profile, not the "prism" one. Because I have 2 instance of FF running : 1 with default profile, 1 with prism profile. No way to "force" ff to use the prism profile

由fgaudet于修改

more options

This seems a rather odd use case, why not just set "prism" as the default.

I think if you do not set any browser as a default then the last version opened is effectively the default with the chosen profile.

So if your ordinary Firefox is not actually set as default, you should be able to open that, then using no remote open the "prism" profile firefox, with that being the one that opens repeatedly.