What happens when logging out to the applications?
00cpxxx at gmail.com
Thu Jul 6 14:59:17 CEST 2006
On 7/6/06, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> I'm a bit confused.
> Until now, I thought when I'm logging out and my session is saved, all
> running applications get signal 15(SIGTERM) and therefore quit.
> But it seems, that this is not the case. I had a look in
> xfce4-session's code and if I read it correctly it calls SmsSaveYourself
> (). And I guess, this function sends a kind of signal or message to
> each application to ask it to quit.
> How can I react on this signal in my (GTK-)application?
> P.S.: I know, this is not really Xfce-related.
Maybe trapping the sinal SIGTERM (or any other kind of signal) using
some kind of gtk function or by the standard signal.h (c language).
Maybe what's xfce does is to send a close event to every window just
like a click on close in the titlebar.
Bruno Gonçalves de Jesus
Live free() or die()!
More information about the Xfce4-dev