Re: Get the applications notified when session is closing



Laurent Bigonville wrote:

Hi,

In MacOS X when the user closes his session all the applications are
notified and if some of them still have unsaved documents, they ask him
what to do. If he doesn't answer (there is a timeout) or if he hit
cancel button in the save dialog, the closing of the session is
canceled.

It should be nice if something similar were implemented in Gnome using
DBus or something like that.

For example, you start typing an email and then you search something on
Internet or you switch to another virtual desktop and forget the email.
Then you close the session, the email is lost. If Gnome asked to save
before closing the session you could at least save it.

   This is because your e-mail composing client does not conform
to the session management protocol by the gnome-session. If the client
is mozilla based, you have that problem. Mozilla has not been good
client of session management.
    gedit is a good example of fullyt compliant session client or even
gnome-terminal itself.
     libgnomeui provides a quite simple API for session manegement,
though I am sure what would happen to it after the Ridley project!

     If an application does not want to use libgnomeui for sessioning,
metacitydoes implement it own sessioning without using libgnomeui,
see metacity/session.c for details. It is quite well written :)


-Ghee



Regards

Laurent Bigonville
------------------------------------------------------------------------

_______________________________________________
desktop-devel-list mailing list
desktop-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]