No 'org.freedesktop.DBus.Error.PropertyWriteOnly' error
Submitted by nschoe
Assigned to D-Bus Maintainers
Description
DBus properties can have 3 different access mode:
- readonly
- read
- write
When trying to set a new value to a readonly
property, we get the DBus error: org.freedesktop.DBus.Error.PropertyReadOnly
, but there is no such equivalent for trying to read a write
property.
Admittedly this should not happen too often as I read that the use of write-only properties is discouraged, but since it is explicitly supported, I think we should provide a proper error.