有人知道 Mac 上的 Firefox 使用什么文件来触发安全模式启动吗?我用的是 Mac,但一直没能找出 Firefox 是如何标记它需要以安全模式启动的。有绕过安全模式的方法,但我正在寻找一种方法,在程序启动前将其扼杀在萌芽状态。
答案1
它使用命令行参数,而不是文件。我相信在为 Mac 编译的 Firefox 上也是如此。
$ firefox --help
Usage: firefox [ options ... ] [URL]
where options include:
X11 options
--display=DISPLAY X display to use
--sync Make X calls synchronous
--g-fatal-warnings Make all warnings fatal
Firefox options
-h or -help Print this message.
-v or -version Print Firefox version.
-P <profile> Start with <profile>.
-migration Start with migration wizard.
-ProfileManager Start with ProfileManager.
-no-remote Open new instance, not a new window in running instance.
-UILocale <locale> Start with <locale> resources as UI Locale.
-safe-mode Disables extensions and themes for this session.
-jsconsole Open the Error console.
-browser Open a browser window.
-new-window <url> Open <url> in a new window.
-new-tab <url> Open <url> in a new tab.
-preferences Open Preferences dialog.
-search <term> Search <term> with your default search engine.
-private Enable private browsing mode.
-private-toggle Toggle private browsing mode.
-setDefaultBrowser Set this app as the default browser.