<div dir="ltr">Does anyone here know how to detect user log off and gracefully terminate under Gtk2 Linux? I have an app which uses some temporary files (in /tmp) and I want to ensure those files are deleted when the user logs off. The application query/end sessionĀ eventsĀ don't seem to be connected when using the Gtk2 widgetset.<div><br></div><div>From this stack overflow answer it would seem there is a 'save-yourself' sinal to notify you when the user logs off, but I don't know what the LCL value of client might be. Could it be application handle? Is there a better way to detect user log off on Gtk2?</div><div><br></div><div><a href="https://stackoverflow.com/a/2519829/269630">https://stackoverflow.com/a/2519829/269630</a><br><div><br></div></div></div>