From 9feb059900a020aa3d5de42d38866a40dfd5f910 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 3 Jul 2018 17:22:34 +0900 Subject: [PATCH] Fix dbus proxy creation code Add G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag. app2sd-server does not provide object which has properties. Without this flag, g_dbus_proxy_new_sync() will try to load properties using GetAll method, and this call will be denied by default dbus policy. Change-Id: Idbce104f86fb6f6067d314a4c7784b487b9235d6 Signed-off-by: Sangyoon Jang --- plugin/app2sd/lib/app2sd_client_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/app2sd/lib/app2sd_client_interface.c b/plugin/app2sd/lib/app2sd_client_interface.c index 4d5efad..5586f41 100644 --- a/plugin/app2sd/lib/app2sd_client_interface.c +++ b/plugin/app2sd/lib/app2sd_client_interface.c @@ -79,7 +79,7 @@ static int __app2sd_call_server_method(const gchar *method_name, /* method call */ do { proxy = g_dbus_proxy_new_sync(conn, - G_DBUS_PROXY_FLAGS_NONE, NULL, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL, APP2SD_BUS_NAME, APP2SD_OBJECT_PATH, APP2SD_INTERFACE_NAME, NULL, &error); -- 2.7.4