<div dir="ltr">Hi,<div><br></div><div>actually, systemd daemons are also compatible with Jolla Harbour. There are limitations that you have to follow, but its possible to make and publish Jolla Harbour app that can be used as a daemon. The example of published app/daemon is OSM Scout Server. While it can be used as an app, it can be configured to run as a socket activated systemd daemon (systemd, thank you for this excellent way to provide such service!). All configuration works from the app as well, no additional scripts need to be run by users. The limitations that you have to follow:</div><div><br></div><div>* all systemd interaction should be done as an ordinary user (nemo in our case). Hence, you could run your daemon as a user's own daemon. Not a limitation in my case</div><div><br></div><div>* you can provide only one executable in RPM which has to be an app. In my case, its resolved by running as a regular QML app normally and as a service only if specific command line options are given.</div><div><br></div><div>If you want to provide it as a background service, I would suggest to make enabling / disabling from the app. That would make it easier for users to use it. </div><div><br></div><div>Cheers,</div><div><br></div><div>Rinigus </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 25, 2017 at 2:26 PM, Андрей Кожевников <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Battery overlay also.<br><div class="gmail_extra"><br><div class="gmail_quote">25 нояб. 2017 г. 15:24 пользователь "Dylan Van Assche" <<a href="mailto:dylan.van.assche@protonmail.com" target="_blank">dylan.van.assche@protonmail.<wbr>com</a>> написал:<div><div class="h5"><br type="attribution"><blockquote class="m_6970944171318175021quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi CODeRUS,<br></div><div><br></div><div>Oh I didn't know that Screentapshot used this approach, thanks a lot!<br></div><div><br></div><div>Cheers,<br></div><div>Dylan Van Assche</div><div class="m_6970944171318175021elided-text"><div class="m_6970944171318175021m_2215469630353605303protonmail_signature_block m_6970944171318175021m_2215469630353605303protonmail_signature_block-empty"><div class="m_6970944171318175021m_2215469630353605303protonmail_signature_block-user m_6970944171318175021m_2215469630353605303protonmail_signature_block-empty"><div><br></div></div><div class="m_6970944171318175021m_2215469630353605303protonmail_signature_block-proton m_6970944171318175021m_2215469630353605303protonmail_signature_block-empty"><br></div></div><div><br></div><blockquote class="m_6970944171318175021m_2215469630353605303protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [SailfishDevel] Harbour compatible background apps?<br></div><div>Local Time: 25 November 2017 10:41 AM<br></div><div>UTC Time: 25 November 2017 09:41<br></div><div>From: <a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a><br></div><div>To: Dylan Van Assche <<a href="mailto:dylan.van.assche@protonmail.com" target="_blank">dylan.van.assche@protonmail.c<wbr>om</a>>, Sailfish OS Developers <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>><br></div><div><br></div><div dir="ltr"><div>Hello, yes this is harbour-compatible.<br></div><div>For example i have this app published in store: <a href="https://github.com/CODeRUS/harbour-screentapshot" target="_blank">https://github.com/CODe<wbr>RUS/harbour-screentapshot</a><br></div></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>2017-11-25 12:34 GMT+03:00 Dylan Van Assche via Devel <span dir="ltr"><<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>></span>:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div>Hi Devs,<br></div><div><br></div><div>I found a repo from CODeRUS with an example of a background app:<br></div><div><a href="https://github.com/CODeRUS/background-application-example/tree/master/src" target="_blank">https://github.com/CODeRUS/bac<wbr>kground-application-example/tr<wbr>ee/master/src</a><br></div><div><br></div><div>Is this Harbour compatible? The Harbour FAQ allows this AFAIK since it's not a real daemon, it just hides the UI from the screen while that the C++ backend still runs.<br></div><div>If so, this would be great to send notifications in the background and when the user clicks on the notification, we can show the UI by calling it's DBus endpoint.<br></div><div><br></div><div>Kind regards,<br></div><div>Dylan Van Assche<br></div><div class="m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block-empty"><div class="m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block-user m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block-empty"><div><br></div></div><div class="m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block-proton m_6970944171318175021m_2215469630353605303m_3073048268284653784protonmail_signature_block-empty"><br></div></div><div><br></div><div><br></div><div>______________________________<wbr>_________________<br></div><div> SailfishOS.org Devel mailing list<br></div><div> To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfi<wbr>shos.org</a><br></div></blockquote></div></div></blockquote><div><br></div></div></blockquote></div></div></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>