<div dir="ltr">HI Simon McVittie,<br><br>I found Message.set_sender method only accepts unique bus name. But in my project, I need implement a simple dbus daemon, it need set the sender as "org.freedesktop.DBus". Could you fix this problem? Thanks.<br>
<br>Below is the patch for fixing it.<br><br>BRs<br>Huang Peng<br><br>diff --git a/_dbus_bindings/message.c b/_dbus_bindings/message.c<br>index 8da8ffc..a2c04c3 100644<br>--- a/_dbus_bindings/message.c<br>+++ b/_dbus_bindings/message.c<br>
@@ -606,7 +606,7 @@ Message_set_sender(Message *self, PyObject *args)<br> return NULL;<br> }<br> if (!self->msg) return DBusPy_RaiseUnusableMessage();<br>- if (!dbus_py_validate_bus_name(name, 1, 0)) return NULL;<br>
+ if (!dbus_py_validate_bus_name(name, 1, 1)) return NULL;<br> if (!dbus_message_set_sender(self->msg, name)) return PyErr_NoMemory();<br> Py_RETURN_NONE;<br> }<br><br><br><br></div>