Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12, 5.15, 6.0, 6.1, 6.2
-
None
Description
I have an object registered with D-Bus, which derives from QDBusContext and exposes some Q_PROPERTY on the bus. D-Bus provides an implementation of the org.freedesktop.DBus.Properties interface, so that these properties are transparently exposed to D-Bus clients.
However, inside the getter and setter methods of this properties, QDBusContext::calledFromDBus() returns false.
This makes it impossible to:
- Return a D-Bus error (in case the property is set to an invalid value)
- Know who the caller was (in case I want to return a different value depending on how privileged the caller is).