I run a long running background job on my machine every now and then.
When it is running I do not want to accidentally reboot my machine. I may forget its running and try to reboot/shutdown.
I think I can use systemd-inhibit
to call my job/script so my computer doesn’t shutdown/reboot.
But I’d also like to show a persistant notification too – something that constantly reminds me a job is running.
Or, if there is someway to hook into the shutdown/reboot process from KDE so that if I try to reboot the system, it’ll warn me that I have a long running job.
Is this possible?