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?

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to