static void app_control_launch (const char *app_id)
{
- aul_launch_app_async(app_id, NULL);
+ app_control_h app_control;
+ int ret;
+
+ ret = app_control_create (&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ LOGW ("app_control_create returned %08x\n", ret);
+ return;
+ }
+
+ ret = app_control_set_operation (app_control, APP_CONTROL_OPERATION_DEFAULT);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ LOGW ("app_control_set_operation returned %08x\n", ret);
+ app_control_destroy (app_control);
+ return;
+ }
+
+ ret = app_control_set_app_id (app_control, app_id);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ LOGW ("app_control_set_app_id returned %08x\n", ret);
+ app_control_destroy (app_control);
+ return;
+ }
+
+ ret = app_control_send_launch_request (app_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ LOGW ("app_control_send_launch_request returned %08x, app_id=%s\n", ret, app_id);
+ app_control_destroy (app_control);
+ return;
+ }
+
+ app_control_destroy (app_control);
+ LOGD ("Launch %s\n", app_id);
}
static void slot_run_helper (const String &uuid, const String &config, const String &display)