Para mais informações, é isso que ./firefox --help
gera no meu Mac:
Usage: ./firefox [ options ... ] [URL]
where options include:
--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>.
--profile <path> Start with profile at <path>.
--migration Start with migration wizard.
--ProfileManager Start with ProfileManager.
--no-remote Do not accept or send remote commands; implies
--new-instance.
--new-instance 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.
--headless Run without a GUI.
--marionette Enable remote control server.
--browser Open a browser window.
--new-window <url> Open <url> in a new window.
--new-tab <url> Open <url> in a new tab.
--private-window <url> Open <url> in a new private window.
--preferences Open Preferences dialog.
--search <term> Search <term> with your default search engine.
--jsconsole Open the Browser Console.
--jsdebugger Open the Browser Toolbox.
--wait-for-jsdebugger Spin event loop until JS debugger connects.
Enables debugging (some) application startup code paths.
Only has an effect when `--jsdebugger` is also supplied.
--devtools Open DevTools on initial load.
--start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on
a TCP port or Unix domain socket path. Defaults to TCP port
6000. Use WebSocket protocol if ws: prefix is specified.
--recording <file> Record drawing for a given URL.
--recording-output <file> Specify destination file for a drawing recording.
--setDefaultBrowser Set this app as the default browser.
Você pode ver que nenhuma opção como restore-session
está listada. Além disso, o documento oficial da Mozilla listou 7 casos quando o Firefox restaura a sessão, sem mencionar a linha de comando.
Você pode tentar configurar o Firefox para restaurar sempre a sessão anterior em Preferências> Geral> Quando o Firefox iniciar (selecione Show your windows and tabs from last time
) e chamar sem problemas ./firefox
.