This question already has an answer here:
I like Chrome's feature that lets me restore its pages after it's been closed ungracefully. I use that as a way to save my session (e.g. when just rebooting to install OS updates).
What I've been doing until now:
- Open Chrome's Task Manager, look for the Browser process and remember the PID.
- kill the process with that PID (with
kill -9 <pid>in Ubuntu and with the task manager in Windows)
I'm looking for a way to do that in just one click, or as few actions as possible. E.g. with a script that I put on my desktop.
I'm looking for a solution both for Windows 7 and Ubuntu Linux.
Note: I know I could use some session-management Chrome extension instead, but I've tried some of those and they don't work exactly like I want, whereas the method described above works exactly like I want, but is a bit too difficult to use.
Note: On both Linux and Windows all my Chrome processes have the name
chrome, so I can't differentiate between tab processes and the browser process by name. I'm saying this because I've seen advice to kill the process called
google-chrome-stable - I don't have such a process.
Edit: I found this answer on SuperUser which works very well without the need for an killing any processes. I've voted to close my question as a duplicate.