Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Kimmo Lindholm
You’re missing the property name. You need: string:Powered variant:boolean:true ref: https://together.jolla.com/question/56437/i-would-like-to-toggle-internet-connectivity-via-terminal-with-dbus/ typedCall('SetProperty', [ {'type':'s', 'value': 'Powered'}, {'type':'v', 'value': valuet}], …); r

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Slava Monich
And keep in mind that starting with Sailfish OS 2.1.1 non-privileged processes won't be able to set this property (as well as do a few other connman things, e.g. manipulate the services). In order to be able to use the restricted D-Bus APIs you would have to ask the launcher to run your app und

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Dylan Van Assche via Devel
Can I still monitor for changes and read properties? Can you give a more complete view what will change exactly? I am building an universal bridge between Python and QML with integrated Platform APIs based on DBUS and other stuff. Dylan Original Message Subject: Re: [Sailfish

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Slava Monich
Yes, in that respect the changes are backward compatible. Whatever you are getting from GetProperties can be monitored by handling the PropertyChanged signals. You just need to be prepared that SetProperty and other calls (Connect, Disconnect etc.) may respond with net.connman.Error.PermissionD