How to get notified when system 【log out】?

View: New views
2 Messages — Rating Filter:   Alert me  

How to get notified when system 【log out】?

by Luna Luan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

is there any signals to trace or listen to?

because i have a java app,and i need to do something befor my app is killed when the system log out

any instructions would be much appreciate

Thanks in advance!!!

Re: How to get notified when system 【log out】?

by Bugzilla from thiago@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Em Segunda-feira 19 Outubro 2009, às 11:29:34, você escreveu:
> is there any signals to trace or listen to?
>
> because i have a java app,and i need to do something befor my app is killed
> when the system log out
>
> any instructions would be much appreciate

No, there's no such thing in D-Bus.

In X11 systems, XSM will tell you to exit. So you need to find how to get the
XSM notification in Java.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

signature.asc (196 bytes) Download Attachment