altdesktop / python-dbus-next

🚌 The next great DBus library for Python with asyncio support
https://python-dbus-next.readthedocs.io/en/latest/
MIT License
187 stars 58 forks source link

ServiceInterface with methods/properties depending on object path #125

Open NK308 opened 1 year ago

NK308 commented 1 year ago

How can I create a service with many objects, implementing the same interface, if the method for those objects depend on the object path?

I can't find a way to get the path of the object, on which a method/getter/setter of an interface is called. It seems to me, that the path only is used, while exporting the interface and is in no way propagated to the code which is actually providing the service.