[SailfishDevel] monitor systemd unit from qml

Tone Kastlunger users.giulietta at gmail.com
Thu Jan 28 12:34:04 UTC 2016


Remember,
one does not simply state that "stuff works" when handling DBus ;)

On Thu, Jan 28, 2016 at 2:12 PM, Michael Fuchs <michfu at gmx.at> wrote:

> Ok, thanks. dbus-monitor is a good idea.
>
> I already found another solution via the api of the service, so its not
> that critical. But it would be more elegant to just use qml.
>
> I'm already using a dbus signal to get the status of the wifi connection.
> So basically caching signals from dbus works.
>
> Am 28.01.2016 um 12:56 schrieb Tone Kastlunger:
>
>> OFC one option is to get your service to send a DBus signal once it's up.
>> But that makes systemd irrelevant.
>>
>> dbus-monitor is your friend; put it to run and start the service, grep
>> the output to understand what's going on (which signals are emitted in
>> particular).
>>
>> Then once you are sure the signal is emitted, make sure you have the
>> correct parameters to connect to it.
>>
>> This should do it.
>>
>> On Thu, Jan 28, 2016 at 1:09 PM, Michael Fuchs <michfu at gmx.at
>> <mailto:michfu at gmx.at>> wrote:
>>
>>     No, didn't help either.
>>
>>     https://gist.github.com/fuchsmich/354af082fbc4577a4bf5
>>
>>     But thanks anyway.
>>
>>
>>     Am 27.01.2016 um 22:07 schrieb Ove Kåven:
>>
>>         Den 27. jan. 2016 17:03, skrev Michael Fuchs:
>>
>>             There is a signal "PropertiesChanged" defined but it doesn't
>> get
>>             emitted, when I start or stop the service.
>>
>>
>>         http://www.freedesktop.org/wiki/Software/systemd/dbus/
>>
>>         You could see whether calling "Subscribe()" enables these
>>         signals for you.
>>
>>         _______________________________________________
>>         SailfishOS.org Devel mailing list
>>         To unsubscribe, please send a mail to
>>         devel-unsubscribe at lists.sailfishos.org
>>         <mailto:devel-unsubscribe at lists.sailfishos.org>
>>
>>     _______________________________________________
>>     SailfishOS.org Devel mailing list
>>     To unsubscribe, please send a mail to
>>     devel-unsubscribe at lists.sailfishos.org
>>     <mailto:devel-unsubscribe at lists.sailfishos.org>
>>
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-unsubscribe at lists.sailfishos.org
>>
>> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20160128/73baa0d6/attachment.html>


More information about the Devel mailing list