[haiku-development] Re: The ways of Reboot. Acknowledge or not?

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 30 Apr 2009 19:32:46 +0200 CEST

> Johannes Wischert schrieb:
> > How about simply automaticaly saving the "state" of the application
> > so
> > the text editor would open up again with all the text it had open
> > before shutdown etc... So everything would get saved in the state
> > it
> > is in some temporary file and the original version would remain
> > unchanged. That would not work for every application but for most
> > of
> > them...
> > Of course this would only work for native applicationst that have
> > support for that build in ...
>
> Yes, that would then be the session management that we all want
> anyways.
> :-) Maybe it could be introduced gradually. The protocol could easily
> detect if any running application does not support it, and revert to
> asking the user to saving the document. This could be as easy as
> adding
> a flag to the B_QUIT_REQUESTED message. Applications supporting the
> flag
> would silently save all state and reply to the message in a way that
> indicates they are ready to be restarted in the next session, while
> "old" applications would ignore the flag and ask the user save their
> documents (and they would not be restarted on the next session).
>

May I remind you BApplication is a BArchivable ?

:)

François.

Other related posts: