chrome needs to restore tabs on every reboot

Solution 1:

I too see this problem with chrome not shutting down properly on Ubuntu 17.10. In my case it turned out to be the forecastfox extension. When it's running and I close chrome I can see in system monitor that the browser has not shut down completely and problems do occur when I start chrome the next time from chrome crashing to tabs needing to restore. If I disable forecastfox chrome shuts down fine and I see no problems the next time I open it.

Solution 2:

I've been seeing the same behaviour in Ubuntu 16.04 and 18.04 and no matter of debugging, tweaking, reading articles or trying anything fixed it.

I did however literally just find that if I logout before I reboot then it's fine. Not exactly a "solution", however it seems to appease the Chrome gods and allow it to exit gracefully.

Hope that is of some use

Solution 3:

This workaround does it for me Chrome v80, Ubuntu 18.04: Add a custome command to shut down Chrome gracefully before rebooting. What I did is to append to ~/.bash_aliases:

alias res="pkill --oldest chrome; sleep 3; sudo reboot"

Sleep is needed since it takes a bit time to shut chrome down. Then every time I want to reboot, I just run res from terminal. "res" is less typing for me as well.

Note: I think there are more proper ways to run command before rebooting. Please feel free to update.