Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

closing Firefox on linux from the terminal and avoiding "restore session" warnings

  • 1 antwoord
  • 0 hierdie probleem
  • 4 views
  • Laaste antwoord deur cor-el

more options

I'm trying to just close and restart firefox from some bash scripts on Linux so that I can manage a few items from various hotkeys.

I'm trying to close an existing Firefox process "cleanly", and am running into issues with how to kill the Firefox process and have it restart without showing the "restore session" page. If I update about:config and override "browser.sessionstore.resume_from_crash" to false, then I get the behavior I'm looking for, but I'd rather not have to override this.

I've tried multiple kill signals from the `kill` command, including HUP, STOP, QUIT, TERM, INT, however all of them seem to trigger the same behavior.

So is there a way to cleanly close (or restart) Firefox from the terminal?

I'm trying to just close and restart firefox from some bash scripts on Linux so that I can manage a few items from various hotkeys. I'm trying to close an existing Firefox process "cleanly", and am running into issues with how to kill the Firefox process and have it restart without showing the "restore session" page. If I update about:config and override "browser.sessionstore.resume_from_crash" to false, then I get the behavior I'm looking for, but I'd rather not have to override this. I've tried multiple kill signals from the `kill` command, including HUP, STOP, QUIT, TERM, INT, however all of them seem to trigger the same behavior. So is there a way to cleanly close (or restart) Firefox from the terminal?

All Replies (1)

more options

You probably need to remove sessionCheckpoints.json in the Firefox profile folder to make Firefox think it's a new profile.