app_control_set_app_id(app_control, KASKIT_PACKAGE);
__launch_krate_app(ad->krate_manager, ad->krate_name, app_control);
app_control_destroy(app_control);
+ } else if (!strcmp(ad->mode, "remove")) {
+ app_control_create(&app_control);
+ app_control_set_app_id(app_control, KEYGUARD_PACKAGE);
+ snprintf(uri, sizeof(uri), "krate://cleanup/%s", ad->krate_name);
+ app_control_set_uri(app_control, uri);
+ app_control_send_launch_request(app_control, NULL, NULL);
+ app_control_destroy(app_control);
}
ad->request_done = true;