Hi
On Sun, Apr 14, 2019 at 2:06 PM Didier Spaier <
did...@slint.fr> wrote:
> can I just use this script, possibly with some changes, and continue
> to use dbus-dameon, instead of switching to dbus-broker-launch?
>
> If the answer is yes, could you please give me some pointers to
> help me find out which changes would be necessary?
There seems to be a misunderstanding: `dbus-broker` is an
implementation of the D-Bus specification, just like `dbus-daemon` is.
However, the original `dbus-daemon` provides a lot more tooling around
it, including parsing service files, handling service activation,
parsing configuration files and providing a message bus policy. These
are all features beyond the D-Bus specification, and thus are not
standardized in any way.
A pure bus implementation like `dbus-broker` does not get you
anywhere. You need some integration into the actual system. With
`dbus-broker-launch` we provide this for systems based on systemd. The
original `dbus-daemon` had all this functionality included in its
base, rather than splitting both apart.
If you intend to employ `dbus-broker` over `dbus-daemon`, there are 2 options:
1) Use the provided launcher `dbus-broker-launch`, which is tailored
for systemd-based distributions.
2) Write your own launcher. This very likely requires parsing bus
configuration files, service configuration files, and the message bus
policy, and then spawning your own instance of `dbus-broker`. This is
in no way a trivial task. However, it is completely unrelated to
D-Bus, which is why we don't believe this belongs into `dbus-broker`.
The information to write a launcher yourself, and how to interact with
`dbus-broker` instances is documented in the `dbus-broker(1)`
man-page.
Thanks
David