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:

#!/bin/bash
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 https://archive.camratus.com/2017/09/21/workaround-to-avoid-message-chrome-didnt-shut-down-correctly-on-ubuntu-linux/ (2017-09-21)

Tags:
#ubuntu #google-chrome