In all python dbus documentations there are info on how to export objects, interfaces, signals, but there is nothing how to export interface property.
Any ideas how to do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s definitely possible to implement D-Bus properties in Python! D-Bus properties are just methods on a particular interface, namely
org.freedesktop.DBus.Properties. The interface is defined in the D-Bus specification; you can implement it on your class just like you implement any other D-Bus interface:dbus-python ought to make it easier to implement properties, but it currently is very lightly maintained at best.
If someone fancied diving in and helping fix up stuff like this, they’d be most welcome. Even adding an expanded version of this boilerplate to the documentation would be a start, as this is quite a frequently asked question. If you’re interested, patches could be sent to the D-Bus mailing list, or attached to bugs
filed against dbus-python on the FreeDesktop bugtracker.