LWN.net Logo

Day: GNOME OS

Day: GNOME OS

Posted Aug 8, 2012 16:48 UTC (Wed) by endecotp (guest, #36428)
In reply to: Day: GNOME OS by drag
Parent article: Day: GNOME OS

> I am very interested in how iOS/OS X handles application
> updates through the app store.

On iOS, if you install an update to an app from the store, then any currently-running instance of the app is killed first.

Only one app is "foreground" at any time on iOS, so when the App Store app is in the foreground, the app being upgraded cannot be. When an app is backgrounded, it is told that it is going in to the background and it is expected to save its state. It might eventually be resumed but it could be terminated without any further notice due to power-off, low memory, etc. So the case of an update is not special.

I don't know how it works on the Mac, where presumably the app being upgraded might still have windows visible. My guess is that it is killed with some notice first.


(Log in to post comments)

Day: GNOME OS

Posted Aug 9, 2012 8:39 UTC (Thu) by krake (subscriber, #55996) [Link]

"I don't know how it works on the Mac, where presumably the app being upgraded might still have windows visible. My guess is that it is killed with some notice first."

I wouldn't be so sure. The blog indicated that Chrome wants to be running during and after the upgrade and it said Linux makes that difficult and Windows and OS X don't.

Therefore we msut assume that the Mac store update process allows applications to continue to run. There is just no confirmation on that yet and not details how it does it.

Day: GNOME OS

Posted Aug 9, 2012 9:30 UTC (Thu) by hummassa (subscriber, #307) [Link]

this is probably because the Mac upgrade process changes the whole /Applications/Google\ Chrome directory and the old application + the old shared objects is running from the old directory, so you don't have the problem you usually have *during* an apt-get dist-upgrade that if your running applications dlopen(), they do that with the *new* libraries (possibly inconsistently with what they are expecting).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds