Everytime I shutdown/reboot my computer, my Chromium dies (asks me if I want to restore the last session) so I've been trying to set up a shutdown script which gracefully kills it instead. I've read some guides online with the usual Before=shutdown.target etc but I can't get it to work. Can someone...
My current NAS server is a Raspberry Pi 4 with USB-connected WD Elements but I'd like to upgrade and become a proper Datahoarder. This is my v1: PCPartPicker Part List |Type|Item|Price| |:-|:-|:-| |CPU|Intel Core i3-7100 3.9 GHz Dual-Core Processor|$11
Yesterday I did my first investment in Steam to fill my Library. I'm a real noob and don't understand the concept of items. I have 23 items and don't know what they are. They're valid until the end of the steam sale (7/4/2016) and some of them are duplicates (like X marks the spot!). What are those...
Okay, so turns out that the systemd service did work; I just must've gotten super unlucky. After some testing I've concluded that it doesn't always work, and that SIGTERM works better than SIGINT. So this is all you need (works for logout, shutdown and reboot):
Chromium doesn't ask, it just closes. But if I shutdown gedit for example, it does ask me if I would like to save any open files before closing. But even then, I can gracefully kill Chromium with pkill -2, I just haven't found a way to run that before shutdown yet.
Okay, so turns out that the systemd service did work; I just must've gotten super unlucky. After some testing I've concluded that it doesn't always work, and that
SIGTERMworks better thanSIGINT. So this is all you need (works for logout, shutdown and reboot):Chromium doesn't ask, it just closes. But if I shutdown gedit for example, it does ask me if I would like to save any open files before closing. But even then, I can gracefully kill Chromium with
pkill -2, I just haven't found a way to run that before shutdown yet.Because it's asking to load the previous state from disk. This obviously works, until it doesn't and I lose all my tabs.
Yeah but when you kill the application gracefully, it doesn't ask you to restore the last session. It just loads it.
crash bad