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
Hello,
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:
http://stackoverflow.com/questions/2490166/detect-user-logout-shutdown-in-python-gtk-under-linux-sigterm-hup-not-recei
someone solved the problem using libgnomeui, but it is now deprecated. Is there any other way to achieve the same result?
Regards,
phan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]