4 ms·
DBus is yet another message bus, but this time for a few desktop applications. Made famous by BlueZ's requirement of DBus and by it being the only Linux userspa
by throwway120385 3y ago
DBus is yet another message bus, but this time for a few desktop applications. Made famous by BlueZ's requirement of DBus and by it being the only Linux userspace thing that made it into Android before they completely rewrote the userspace stack for the phones.
A ton of "desktop linux" components will attempt to use DBus for inter-process communication because it's easier than a lot of the alternatives.
- zh3 3y agoEh, some of us would wonder what the easier alteratives are?
- qbasic_forever 3y agoUnix domain sockets or FIFOs could be an alternative, but you'd have to do all kinds of complexity to support pub/sub style many to many communication over them (which is what dbus effectively does for you).
- amelius 3y agoIt depends if you are a fan of a centralized server vs decentralized communication. Anyway, all the complexities of using sockets/FIFOs could be hidden inside libraries.
- deleted 3y ago[deleted]
- SAI_Peregrinus 3y agoOnce you hide the complexities of using sockets you just end up with some sort of message bus that each application connects to and registers an ID with... which is essentially what dbus is.
- amelius 3y agoI specifically said libraries (as opposed to a centralized service).