launch: make broker executable configurable
Rather than hard-coding the broker executable in-place, make it
configurable via a global variable. Note that this is not hooked up via
cmdline args, yet. This needs to be done once we decided how to find
binary-paths.
@@ -47,6 +47,7 @@ struct Manager {
static bool main_arg_verbose = false;
static const char *main_arg_listen = "/var/run/dbus/system_bus_socket";
static const char *main_arg_servicedir = "/usr/share/dbus-1/system-services";
+static const char *main_arg_broker = "/usr/bin/dbus-broker";
static bool main_arg_force = false;
static int service_compare(CRBTree *t, void *k, CRBNode *n) {
@@ -218,7 +219,7 @@ static noreturn void manager_run_child(Manager *manager, int fd_controller) {
r = snprintf(str_controller, sizeof(str_controller), "%d", fd_controller);
assert(r < (ssize_t)sizeof(str_controller));
- r = execve(argv[0], argv, environ);
+ r = execve(main_arg_broker, argv, environ);
r = error_origin(-errno);
exit:
