[SailfishDevel] Keep an application running without keeping the window open

Marcin Mielniczuk marmistrzmar at gmail.com
Mon Feb 5 09:17:28 UTC 2018


Hi,

When creating SFOS applications which should run 24/7 (e.g. IMs) we
would like to achieve similar behavior as the stock applications, e.g.
the stock e-mail client: the sync (*) runs in the background, even
though the application is closed. A window staying open just to make
sure the sync goes on clutters the open app view and makes it more
difficult to manage the open applications.

On a desktop DE one would simply minimize the application to tray.
Alternatively, one could create a daemon which the client app would
communicate with using UNIX sockets, but it greatly increases the
complexity of the application and slows down the development.

What's the easiest way to keep the sync process in the background
without keeping the window open?

Regards,
Marcin

(*) when speaking sync, I mean any kind of waiting for a remote event,
no matter if it's done by idle TCP (which is good) or HTTP polling
(which is not good)




More information about the Devel mailing list