The kdbuswreck
The kdbuswreck
Posted Apr 27, 2015 12:54 UTC (Mon) by mchapman (subscriber, #66589)In reply to: The kdbuswreck by javispedro
Parent article: The kdbuswreck
I don't think it's necessarily an ugly trick. The difference between getting a list of service names with some prefix and in getting a list of services providing some object (assuming this were even possible with D-Bus) is mostly superficial.
If efficiency is the problem, getting a list of service names for things like MPRIS could be optimized by extending the protocol slightly, e.g. by having org.freedesktop.DBus.ListNames take a prefix as an argument.
But allowing a service name to be owned by at most one connection is essential for lsl's use case. You can't sanely dispatch "to an implementation that makes sense accorrding to local system configuration" if more than one such implementation is on the bus at the same time.
