Broadcast to specific user?
Felipe Gasper
felipe at felipegasper.com
Wed Oct 28 14:37:29 UTC 2020
> On Oct 28, 2020, at 10:29 AM, Simon McVittie <smcv at collabora.com> wrote:
>
> On Tue, 27 Oct 2020 at 14:30:37 -0400, Felipe Gasper wrote:
>> Is it possible with D-Bus to broadcast a signal such that only clients
>> logged in as a specific user or group will receive the message?
>
> If you want to send non-public information on the system bus, you can't
> use broadcasts. If you want to emulate a more controlled multicast by
> sending individual unicast signals to each recipient, you should
> implement your own subscription mechanism to avoid waking up clients
> that have the right user/group but don't care about this particular
> message, for example:
Thank you for this.
This context doesn’t have a “service” that would manage subscriptions. I think we can actually make unicast work, though, which solves this problem a bit more simply.
-FG
More information about the dbus
mailing list