搜尋 Mozilla 技術支援網站

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

了解更多

Problem with `--search` command line option

  • 2 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 dakota.peck

more options

I often launch Firefox from the command line and make heavy use of the `--search` option. Recently, the `--search` option has only been working when a Firefox window is already open. Basically, when there's already a Firefox window open, `--search` works exactly as expected, but when there's not a window open, Firefox ignores the `--search` command and opens my homepage instead.

I'm using Firefox 67.0 on Fedora 29. Any help is greatly appreciated!

I often launch Firefox from the command line and make heavy use of the `--search` option. Recently, the `--search` option has only been working when a Firefox window is already open. Basically, when there's already a Firefox window open, `--search` works exactly as expected, but when there's not a window open, Firefox ignores the `--search` command and opens my homepage instead. I'm using Firefox 67.0 on Fedora 29. Any help is greatly appreciated!

所有回覆 (2)

more options

Do you see error messages in the console if you use that to do the search? Does it help if you specify the profile as well via -P profile ?

more options

I tried `firefox --search "test"` and `firefox -P default --search "test"` in a console just now. Both opened my homepage without searching, and neither produced any console output.