News for hackers. Stuff that matters.
Re:Will Linux phones become a viable alternative to the Andr... by eviks on Monday October 12, 2026 @11:48AM (#50058157)
> so do first party Apple apps

Again, what I've started with - this is simply false. App Store, the first party gateway to all apps, doesn't. It loses the app page you're in all the time and can't even remember your search query. Safari doesn't

> On Linux no app CAN implement this because the protocols do not exist.

What do you mean, what stops an app from saving position and restoring it in the absence of some magical protocol? How have some apps done in since before the phones existed?

Re:Will Linux phones become a viable alternative to the Andr... by serbuvlad on Monday October 12, 2026 @02:18PM (#50060519)
Huh? I just tested it now and the App Store reopened on the same page I was on and Safari also opened on this page and it remembered what I had written into the text box.

More generally apps can store whatever info they want when they're going away to be retrieved when coming back transparently.

On the other hand semantics on the Linux desktop are such that the operating system cannot inform an app that it is going away transparently.

An app that is SIGKILL'd cannot save anything (unless it is proactively saving all the time which is terrible for battery life), an app which is SIGSTOP'd must save it's entire memory space and cannot relinquish locks or GPU resources, and an app that is SIGTERM'd can ask the user to save their work etc. (which is not what a transparently closed app should do).

Re:Will Linux phones become a viable alternative to the Andr... by eviks on Monday October 12, 2026 @11:22PM (#50066214)
No wonder you've been oblivious to this issue with 40 apps. Test better, I suppose? Maybe give it more time for the system to fully offload the app, maybe run a few intensive games if you want it faster or just wait longer?

Have you tried other tabs in Safari? Turned off the internet to see whether it's redownloading a page. (by the way, Safari uses 1G of cache, that's enough to store all my 40 tabs basic htmls, yet it doesn't, it finds other less relevant data more important)

And just for this I've tested two more native apps: opened settings/filters in Magnifier, and started editing a password in Passwords app. I was glad that both of these seem to remember the state, and their app switcher screenshot reflected it (well, except for passwords, which is hidden), but then after a longer time reopened them, and position was gone and I was back on the main page - exactly the experience I came to rely upon with trivial bits of state simply gone.

> is SIGTERM'd can ask the user to save their work etc. (which is not what a transparently closed app should do).

Why can't it save the state without asking??? Have you used text editors with hot reload? They just quit with "unsaved" (but not "lost") files.