Kill/stop all Google Chrome processes

chrome

I like Chrome and such, I don't really want to switch back to Firefox or anything else.

My issue is that occasionally it really feels like the whole process needs a restart. I've noticed that if I just close it and close its little bubble in the top-right, processes (ps -A) stick around.

Is there a quick/easy way I could just create a button that says "nuke chrome" and kill all processes related to it with one click?

I think it would be helpful.

Using Xubuntu 14.04 and no longer stuck on it, so it's even alright with me if you're like:

"Try this other distro that won't have those sorts of issues."

Yes, it probably is one of these many buggy extensions I've installed. But I'd like to use this same method with other applications as well.

Best Answer

If you go to Chrome settings --> "Show advanced settings" and uncheck "Continue running background apps when Chrome is closed", that might solve the problem.

Otherwise, you could use the command pgrep chrome | xargs kill or pkill chrome (from this answer).

These two links both explains how to create a launcher (menu button) in Xfce (Xubuntu). Just create a launcher for either of the two above commands, after testing them in a terminal to make sure they do what you want.

Related Question