From: Tomasz Iwanek Date: Tue, 13 Jan 2015 14:26:52 +0000 (+0100) Subject: Quickfix multi-user in appsvc function calls X-Git-Tag: accepted/tizen/4.0/unified/20170816.011601~6^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2138d03aa857109bfbbe5dd9d810359a56d8ca1c;p=platform%2Fcore%2Fapi%2Fapp-control.git Quickfix multi-user in appsvc function calls This commit assumes there is no point to run service for global user. I see no sense for this so just switch API. Change-Id: If17257d194cb9aa0ad3cc0b6685bc8c7fa33f3fb --- diff --git a/src/service.c b/src/service.c index 7c88313..927b16c 100755 --- a/src/service.c +++ b/src/service.c @@ -737,7 +737,7 @@ int service_send_launch_request(service_h service, service_reply_cb callback, vo appsvc_set_operation(service->data, SERVICE_OPERATION_DEFAULT); } - launch_pid = appsvc_run_service(service->data, service->id, callback ? service_request_result_broker : NULL, request_context); + launch_pid = appsvc_usr_run_service(service->data, service->id, callback ? service_request_result_broker : NULL, request_context, getuid()); if (implicit_default_operation == true) { @@ -1040,7 +1040,7 @@ int service_is_extra_data_array(service_h service, const char *key, bool *array) if (service_validate_internal_key(key)) { return service_error(SERVICE_ERROR_KEY_REJECTED, __FUNCTION__, "the given key is reserved as internal use"); - } + } if (!appsvc_data_is_array(service->data, key)) { @@ -1170,7 +1170,7 @@ int service_foreach_app_matched(service_h service, service_app_matched_cb callba return service_error(SERVICE_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); } - appsvc_get_list(service->data, service_cb_broker_foreach_app_matched, &foreach_context); + appsvc_usr_get_list(service->data, service_cb_broker_foreach_app_matched, &foreach_context, getuid()); return SERVICE_ERROR_NONE; }