Workaround to avoid message "Chrome didn’t shut down correctly" on Ubuntu / Linux

When shutdown or reboot computer on Linux system (Ubuntu, Ubuntu Gnome etc…) I ussuallty got message "Chrome didn’t shut down correctly" everytime open Google Chrome (v 60.0.3112.101) if before shutdown I did’n close it.

Here a solution to avoid this situation:

As root, create a file name K99-close-google-chrome in /etc/rc6.d/, with content:

pkill --oldest chrome

save and chmod this file for executable:

sudo chmod +x /etc/rc6.d/K99-close-google-chrome

this script will help close Google Chrome before system shutdown or reboot.

Origin post at (2017-09-21)

#ubuntu #google-chrome