為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox 68 Mac, can't start w/profile from command line

  • 7 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 user1903660

more options

Long-time Firefox user with several profiles defined via ProfileManager. Have several AppleScript apps that start firefox-bin with "-P profilename" to start Firefox with the named profile (see <https://spf13.com/post/managing-multiple-firefox-profiles-in-os-x/> for a description of how this is set up). They no longer work. Starting the profiles from a shell prompt also does not seem to work, at best it opens a new Firefox window in each currently-open Firefox profile. Have tried -P with profile name (profile name quoted), --profile with path to profile's "Root Directory", --profile with path to profile's "Local Directory", pathnames quoted if necessary; all of the above with --new-instance. No joy. What am I missing?

Long-time Firefox user with several profiles defined via ProfileManager. Have several AppleScript apps that start firefox-bin with "-P profilename" to start Firefox with the named profile (see <https://spf13.com/post/managing-multiple-firefox-profiles-in-os-x/> for a description of how this is set up). They no longer work. Starting the profiles from a shell prompt also does not seem to work, at best it opens a new Firefox window in each currently-open Firefox profile. Have tried -P with profile name (profile name quoted), --profile with path to profile's "Root Directory", --profile with path to profile's "Local Directory", pathnames quoted if necessary; all of the above with --new-instance. No joy. What am I missing?

被選擇的解決方法

There were a few changes here recently, you might want to try `firefox -P profile -no-remote`

從原來的回覆中察看解決方案 👍 2

所有回覆 (7)

more options

Additional information: One way profiles do work: about:profiles, and "Launch profile in new browser". So I think my profile definitions are in order, it's getting them going via firefox-bin command-line arguments that is broken.

more options

Does it work if you use firefox -P "profile" instead of firefox-bin ?

more options

It works the same way: I get a new window for each in-use profile.

more options

Running this from the AppleScript again, I am reminded that it put up a dialog, "The command exited with a non-zero status", and that if I echo $? after trying the same command from a shell prompt the status is 1. (I also get the new window open under the in-use profile, as opposed to the profile I wanted to launch).

more options

選擇的解決方法

There were a few changes here recently, you might want to try `firefox -P profile -no-remote`

more options

That seems to work well enough to get the AppleScript method going again. Thanks! (Might be nice if it were in the usage message.)

more options

I'm having the same issue. I have two profiles (work and personal) which I usually leave open; the -P flag seems to be ignored and instead any URL I pass in is opened in both profiles. `-no-remote` doesn't work for me... it either brings up an error complaining that the profile is already open, or it just hangs. All I want is some way to open a link in a specific profile (e.g. from an Alfred shortcut).