diff options
Diffstat (limited to 'src/mandi_daemon.c')
-rw-r--r-- | src/mandi_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mandi_daemon.c b/src/mandi_daemon.c index 6c67d88..cf3bfbe 100644 --- a/src/mandi_daemon.c +++ b/src/mandi_daemon.c @@ -160,7 +160,7 @@ int mandi_daemon_acquire_service(mandi_daemon_t *daemon) { DBusError error; dbus_error_init(&error); - if (dbus_bus_acquire_service(daemon->bus, MANDI_DAEMON_SERVICE, 0, &error) == -1) { + if (dbus_bus_request_name(daemon->bus, MANDI_DAEMON_SERVICE, 0, &error) == -1) { fprintf(stderr, "dbus_bus_acquire_service(): %s\n", error.message); fprintf(stderr, "Make sure a DBus policy allows you to acquire this service.\n"); dbus_error_free(&error); |