Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

in Linux, how kill firefox from a shell in such a way that firefox restarts without 'Restore Session' page?

  • 2 cavab
  • 2 have this problem
  • 1 view
  • Last reply by guy.leonis

more options

Killing firefox from a script with 'kill pid' works, but there is a good chance that the next time you start firefox you get the 'Restore Session' page instead of the home page. This is not nice for my 'professional' application to be delivered to European Space Agency.

Could you tell me the signal to send to force a clean termination of the firefox process, or the directories to clean to avoid getting the 'Restore session' page?

Thanks in advance

Guy

Killing firefox from a script with 'kill pid' works, but there is a good chance that the next time you start firefox you get the 'Restore Session' page instead of the home page. This is not nice for my 'professional' application to be delivered to European Space Agency. Could you tell me the signal to send to force a clean termination of the firefox process, or the directories to clean to avoid getting the 'Restore session' page? Thanks in advance Guy

Chosen solution

You can delete the file sessionstore.js in the Firefox Profile Folder or edit the file and change the running flag at the end in stopped

"session":{"state":"running"}
"session":{"state":"stopped"}
Read this answer in context 👍 1

All Replies (2)

more options

Seçilmiş Həll

You can delete the file sessionstore.js in the Firefox Profile Folder or edit the file and change the running flag at the end in stopped

"session":{"state":"running"}
"session":{"state":"stopped"}
more options

Thank you very much cor-el for this first class support. Indeed, deleting the 'sessionstore.js' file was the kind of solution I was looking for (I don't need to keep sessions).

Guy