[SailfishDevel] monitor systemd unit from qml

Andrey Kozhevnikov coderusinbox at gmail.com
Wed Jan 27 16:13:44 UTC 2016


https://github.com/CODeRUS/jolla-settings-aliendalvik-button/blob/master/settings/mainpage.qml

------ Исходное сообщение ------
От: "Michael Fuchs" <michfu at gmx.at>
Кому: "Andrey Kozhevnikov" <coderusinbox at gmail.com>; "Sailfish OS 
Developers" <devel at lists.sailfishos.org>
Отправлено: 27.01.2016 22:14:29
Тема: Re: [SailfishDevel] monitor systemd unit from qml

>What do you mean by "from same process"?
>
>If I start/stop the service by systemctl, it won't be emitted.
>
>Also if I start/stop service from app,  it won't be emitted.
>
>
>Am 27.01.2016 um 17:03 schrieb Andrey Kozhevnikov:
>>signal emitted if you cnage service state from same process. afaik you
>>can't watch for state changes of any services. if i'm wrong i would be
>>interested in solution also :)
>>
>>------ Исходное сообщение ------
>>От: "Michael Fuchs" <michfu at gmx.at>
>>Кому: "Sailfish OS Developers" <devel at lists.sailfishos.org>
>>Отправлено: 27.01.2016 22:03:23
>>Тема: [SailfishDevel] monitor systemd unit from qml
>>
>>>Hi,
>>>
>>>I would need some help, please.
>>>
>>>I'm trying to monitor a systemd service unit via dbus from qml.
>>>
>>>There is a signal "PropertiesChanged" defined but it doesn't get
>>>emitted, when I start or stop the service.
>>>
>>>Code:
>>>https://gist.github.com/fuchsmich/354af082fbc4577a4bf5
>>>
>>>The GetAll method works and it returns the needed property
>>>org.freedesktop.systemd1.Unit.ActiveState.
>>>So how can I listen to the change of ActiveState?
>>>
>>>thanks,
>>>Michael.
>>>_______________________________________________
>>>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



More information about the Devel mailing list