zlacker

[parent] [thread] 3 comments
1. tored+(OP)[view] [source] 2022-03-22 06:02:52
Reading the Librem app docs it seems like apps are GNOME programs packaged with an manifest. I can’t find anything about app lifecycle.

To be able to conserve battery apps works differently than programs, apps can be suspended. That is usually the problem with normal programs, they are not developed with battery conservation in mind.

I wonder how Librem have solved this, perhaps in their scheduler, or intends to solve this in the future.

https://developer.puri.sm/Librem5/Apps/Guides/Design/Constra...

replies(1): >>etbe+dT2
2. etbe+dT2[view] [source] 2022-03-23 02:43:05
>>tored+(OP)
All programs on the Librem5 appear to be in Debian packages and most of them seem to be identical to the ones in Debian. The document you cited has procedures for getting packages in PureOS independently of Debian, but it seems that most of it will be stock Debian. For my development it seems easier to just upload to Debian and wait for the next Debian release for it to be officially part of PureOS, I'll setup my own apt repository for the things I do and publish the URL for anyone who's interested.

As for apps being suspended, most apps are suspended when there's nothing to do. If a graphical application is minimised so it doesn't have to redraw the screen then it should either be doing nothing or occasionally polling a server if that's it's design.

Web browsers are an interesting corner case as web sites often have JavaScript that wants to run all the time and there's some trade-off between doing what the web site wants and saving CPU/energy. But that's probably not going to be an OS issue for PureOS but an Epiphany browser issue.

replies(1): >>tored+K84
◧◩
3. tored+K84[view] [source] [discussion] 2022-03-23 14:53:44
>>etbe+dT2
Don't you need hooks on the application level so the app can handle the lifecycle to avoid polling?

https://developer.apple.com/documentation/uikit/app_and_envi...

https://developer.android.com/guide/components/activities/ac...

I'm not an app expert nor an expert on GNOME development either, but I got a bit sceptical when I read their app example code, python with GNOME, neither is famous for being snappy.

replies(1): >>etbe+yj9
◧◩◪
4. etbe+yj9[view] [source] [discussion] 2022-03-25 05:33:42
>>tored+K84
That sort of thing seems like a good idea. There are X programs (and presumably Wayland programs) that do similar things (like web browsers stopping things when switching to a different tab or minimising the window). But we could probably do better with different interfaces.

For the moment the Librem 5 seems to be using apps designed to work on PC desktops but at lower resolutions.

[go to top]