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

Stephan Aßmus <superstippi@xxxxxx> wrote:
> 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).

I think a dedicated message might be better, so that the system can
broadcast it to all apps at once (the quit request has to be
sequential, or all "Save Me?" alerts would open at once).

Bye,
   Axel.


Other related posts: