Session management not working

Hello,
I'm writing an application for linux that should be notified when the user ends the X session.
As far as I've understood, it should suffice to register a couple of callback functions with EVT_SESSION_END and/or EVT_QUERY_SESSION_END, but the registered functions are never called.
My code is something like:

class MyApp(wxApp):
    def OnInit(self):
        . . .
        EVT_END_SESSION(self, self.OnEndSession)
        EVT_QUERY_END_SESSION(self, self.OnQueryEndSession)
        return true

    def OnQueryEndSession(self, event):
        syslog.syslog("OnQueryEndSession")
        return true

    def OnEndSession(self, event):
        syslog.syslog("OnEndSession")
        self.frame.Close(true)

Am I missing something?. Is there any "clear" documentation of what should be done?. Maybe an example of code?
Thank you
Atinar

···

_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH

Atinar Arodatlas wrote:

Hello,
I'm writing an application for linux that should be notified when the user ends the X session.
As far as I've understood, it should suffice to register a couple of callback functions with EVT_SESSION_END and/or EVT_QUERY_SESSION_END, but the registered functions are never called.

I don't see anywhere in the wxGTK code that these events are being sent, so it apparently is not supported in that port yet.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Is there any alternative?. I've tryed with gnome.ui.Client, but it also
doesn't work...

Atinar

···

I don't see anywhere in the wxGTK code that these events are being sent,
so it apparently is not supported in that port yet.

Robin Dunn