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

Allow passing message flags to a signal definition #145

Open izak opened 1 year ago

izak commented 1 year ago

I have a requirement to be able to set MessageFlag.NO_REPLY_EXPECTED on signals sent, because I have other processes on the same system that somewhat stupidly reply to my signals with an empty body, and because of the relatively high amount of traffic it increases CPU use on the embedded target that it runs on.

Presently this does not appear to be possible.

Maybe it is as simple as adding a flags parameter to the @signal decorator.