Catch user logout\reboot in Linux

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Nikolay
Experienced Solver
Experienced Solver
Posts: 72
Joined: Wed Oct 10, 2007 4:27 am

Catch user logout\reboot in Linux

Post by Nikolay »

Hello

I need to catch user logout moment in order to correct close application and save user data. In wxWidgets there is EVT_QUERY_END_SESSION, it woks for Window for me and for MacOS (read at forum), but does not work in wxGTK.

Is there Any other way to determine logout moment in wxWidget or GTK or maybe in other way.

wxWidgets trunkg, wxGTK, ubuntu.
Best regards, Nikolay
wxWidgets in russian
Small Notes Manager and Clipboard Manager with History written with wxWidgets
catalin
Moderator
Moderator
Posts: 1618
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: Catch user logout\reboot in Linux

Post by catalin »

Try [wx]EVT_END_SESSION.
Nikolay
Experienced Solver
Experienced Solver
Posts: 72
Joined: Wed Oct 10, 2007 4:27 am

Re: Catch user logout\reboot in Linux

Post by Nikolay »

It does not work too.
Best regards, Nikolay
wxWidgets in russian
Small Notes Manager and Clipboard Manager with History written with wxWidgets
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Catch user logout\reboot in Linux

Post by Auria »

"Keyboard not detected. Press F1 to continue"
-- Windows
Post Reply