Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 3 respostas
  • 1 tem este problema
  • 16 visualizações
  • Última resposta por 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

Todas as respostas (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

Modificado por fgaudet a

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.