My understanding is that Linux sends a SIGTERM notification to all applications before shutting down. I would like to catch the SIGTERM notification so that I can close any open files and perform other application cleanup. Currently my application has no idea that it is about to be killed when Linux shuts down which means I can’t shutdown my application gracefully.
I’d like to catch the SIGTERM notification without the use of add-on libraries if possible since my application is open source and therefore shouldn’t rely on commercial add-ons.
Can anyone suggest a Xojo solution?