According to
782d65d706b0bc46e12a2e041a9331893c788f6c
icon path should be always set with full path.
To verify:
- install widget with <tizen:service> tag and check shared/res/ for icons
there should be one per tizen:service and one for widget itself.
Change-Id: I58d61c447b88a70de34faabaff81c07133f4cfe4
}
if (!service_info.icon().empty()) {
+ bf::path icon_path = context_->root_application_path.get()
+ / manifest->package / "res" / "wgt" / service_info.icon();
icon_x* icon = reinterpret_cast<icon_x*>(calloc(1, sizeof(icon_x)));
- icon->text = strdup(service_info.icon().c_str());
+ icon->text = strdup(icon_path.c_str());
icon->lang = strdup(DEFAULT_LOCALE);
application->icon = g_list_append(application->icon, icon);
}
namespace bs = boost::system;
namespace ci = common_installer;
-namespace {
-const char kResWgt[] = "res/wgt";
-} // namespace
-
namespace wgt {
namespace filesystem {