1

I would like to close chrome before shutdown/restart/logout

The reason for this is to have chrome restore the last session automtically and without displaying the restore button

I tried putting a script in /etc/rc0.d/ like so

sudo vim /etc/rc0.d/K01close-chrome

killall -15 chrome

sudo chmod +x /etc/rc0.d/K01close-chrome

I also tried putting the same code in ~/.logout which worked well when I logout but not in the case of a shutdown or restart

What's the right way to do this?

1 Answer 1

2

killall chrome --wait worked for me

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .