How can i make firefox to restore my tabs after a crash without prompting for it?
Whenever firefox crashes it can restore tabs. But it does so with a prompt.
What i want is that firefox do not ask me to restore or start new session i want it to restore the tab without asking? i use firefox on linux Surprisingly its very hard to do.
All Replies (3)
For a single crash, Firefox will automatically restore the previous session without prompting. If multiple crashes occur, then you are presented with the prompt.
The above controls how many times Firefox will restore the previous session automatically.
- toolkit.startup.max_resumed_crashes
The above controls the maximum number of times Firefox may crash at startup before it will start in Safe Mode automatically.
The above preferences only apply to crashes more recent than 6 hours. To edit the preferences, type about:config into the address bar, then press Enter.
If you haven't already, be sure to read the following article for help with the crashing problem.
Thank you very much it now works like a charm. What happens if i put the value to 0?
I know the origin of the crash and i cannot help it. I use firefox on linux and when you shutdown linux without closing firefox it registers it as a crash. Its just that i am automating some processes on my computer when it starts up and it happens that firefox is in the process and that prompt for crash was kinda getting in the way of the process order.
Modified
Crisislord wrote:
Thank you very much it now works like a charm. What happens if i put the value to 0?
You're welcome. As explained in the article I linked to, that would cause the restore session prompt to always be displayed in case of a crash. What you want is -1 which would cause the prompt to never be displayed (for crashes that occured less than 6 hours prior).
Crisislord wrote:
I use firefox on linux and when you shutdown linux without closing firefox it registers it as a crash.
If Firefox is saying it crashed, then it was forcefully terminated. You should research a way to ensure it's gracefully closed on shutdown.
If it's not possible to tweak the shutdown process, then you could try running a command before shutdown instead. You're supposed to be able to close programs gracefully using wmctrl.
- http://spiralofhope.com/wmctrl-examples.html
- Ubuntu forums thread 1621929 and thread 185261.
At the very least you should keep backups of your profile folder.