Friday 16 May 2014

Re: errors.ubuntu.com and upgrade crashes

On Fri, May 16, 2014 at 10:38:35AM +0100, Matthew Paul Thomas wrote:
> > At some point Firefox added a handy dialog box to alert running
> > instances that it has been upgraded and should be restarted to run
> > safely.

> Which Ubuntu then muddled by illustrating it with a small version of
> the Reload icon. <https://twitter.com/mpt/status/265371407154835456>

I don't know if it is consolation or not but I never noticed anything
except the big "Restart" button in that dialog. :)

> > The person using Firefox simply clicks "restart" and six seconds
> > later is back where he or she left off and the system runs
> > reliably again.

> Mozilla has the resources to include this function. Perhaps the
> LibreOffice team does too. But it's neither reasonable nor elegant to
> expect every app to do it.

This is something we could provide to the developers as a simple API.
onApplicationUpdate: high-level signal or a simple C function to install
the inotify listener that can signal the application's main event loop
when appropriate. We probably even already have a file in every package
that could serve as the inotify sentinal.

That way, applications that are brittle about having their resources
updated 'from underneath' can be prepared to do something about it.

Thanks