From 96b4ad68e5d1497f755dd7be7b42090d7ff337b0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 4 Apr 2015 16:46:42 -0700 Subject: [PATCH] tools: Set environment variable for D-Bus system bus address --- tools/test-runner.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index 5afea8670..407a985bc 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -457,7 +457,7 @@ static const char *daemon_table[] = { static pid_t start_bluetooth_daemon(const char *home) { const char *daemon = NULL; - char *argv[3], *envp[1]; + char *argv[3], *envp[2]; pid_t pid; int i; @@ -486,7 +486,8 @@ static pid_t start_bluetooth_daemon(const char *home) argv[1] = "--nodetach"; argv[2] = NULL; - envp[0] = NULL; + envp[0] = "DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket"; + envp[1] = NULL; printf("Starting Bluetooth daemon\n"); -- 2.47.3