View Single Post
Posts: 263 | Thanked: 108 times | Joined on May 2008
#5
Originally Posted by thp View Post
Won't be too difficult - just hide the main window on a destroy event (to talk in GTK+ terms) and re-show it on a D-Bus signal (i.e. when it's activated from the application manager). The only problem is that the app has to be coded to not cause unnecessary wake-ups when running in "hidden" mode and it could lead to a problem with memory consumption, as "hidden" apps still reside in memory, even if they are swapped out to swapspace.

MeeGo Touch will provide something like this built-in:

http://apidocs.meego.com/mtf/namespa...f36522ced5ffff

(it's called "prestart mode" or "lazy shutdown" there)

You can set it on MApplication:

http://apidocs.meego.com/mtf/class_m...4c965367ca7c77

AFAIK the "prestart" mode (loading before first use) is limited to built-in apps, but lazy shutdown (keeping in memory after first use) could be possible on MeeGo.

For Maemo, it's possible - it's just a matter of where it makes sense and then of implementing it. Here's how you would do it:
  • Connect to the destroy event of your main window - return TRUE and hide the main window
  • Make a D-Bus service for your application, add a "show_gui" method or something that simply shows the main window when called
  • Make the launcher script of your app call "show_gui" if the app is already running, otherwise launch the app normally
Thanks for the tips, but I don't have the knowledge for doing that

I'll try to explain it better, since I haven't seen much interest:

- Most of the time, N900's RAMs is at 50%, this means: we can preload more apps on it and have a fast user experience launching apps;
- Most of the time, when using N900's ROM memory (the 32gb part) it slows down the system, and it's not about processing power, it's about I/O. This means: the less you read from ROM, the faster you get it (wich is true always...).
- Most of the time, I tend to close apps because I don't want them taking space at dashboard (I loose the menu shortcut), but I tend to relaunch it after a certain time.

So my idea is to have a app to control wich apps will "prelaunch" at startup and got "hidden" from dashboard... you launch it, use it, it's on dash, once you hit the close, it'll get back to RAM, hide from dashboard.
Kinda default browser.