Detecting user logout in GTK+ application
- From: phan <phanyx o2 pl>
- To: gnome-list gnome org
- Subject: Detecting user logout in GTK+ application
- Date: Wed, 8 Sep 2010 22:20:20 +0200
is there any signal emitted, when user is logging out or system is going to restart? In both cases applications seems to be closed in a brutal way (destructors are not run) and catching SIGTERM or SIGINT is futile. I wonder, if it's possible to perform some actions (e.g. saving some files) before user logout?
On this site:
someone solved the problem using libgnomeui, but it is now deprecated. Is there any other way to achieve the same result?
] [Thread Prev