[SailfishDevel] Removing libcontextkit-statefs-qt5.so from allowed libraries

Thomas Tanghus thomas at tanghus.net
Thu May 14 07:03:58 UTC 2020


On Thursday, 14 May 2020 08.37 Pekka Vuorela wrote:
> On Wed, 2020-05-13 at 20:41 +0300, rinigus wrote:
> > Hi Pekka,
> > 
> > with the respect of statefs plans, I would like to ask if it is
> > planned to phase out /run/state/namespaces/ API in future. I am using
> > it in collectd to log battery, bluetooth, cellular, and internet data
> > in the corresponding plugins.
> 
> That depends on the statefs packages being installed. Since we're not
> talking about Harbour software, you can still explicitly pull them in.
> They might go away some day, but there's no immediate need for doing
> that.
> 
> Alternative is to switch to other methods, e.g. dbus-send or more
> specific command line tools. Mcetool for example can tell the battery
> state among other things.
 
Just to be sure: The QML ContextProperty will not go away?

I use something like this in my apps:

QtObject {
    property bool isOnline: state.value === 'connected'
    property ContextProperty state: ContextProperty {
        // `cat /run/state/namespaces/Internet/NetworkState`
        key: 'Internet.NetworkState'
    }
}


-- 
Med venlig hilsen / Best regards

Thomas Tanghus

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20200514/de0d1390/attachment-0001.sig>


More information about the Devel mailing list