+static int __check_preload_updated(manifest_x * mfx, const char *manifest)
+{
+ char filepath[PKG_STRING_LEN_MAX] = "";
+ int ret = 0;
+ uiapplication_x *uiapplication = mfx->uiapplication;
+
+ if(strstr(manifest, MANIFEST_RO_PREFIX)) {
+/* if preload app is updated, then remove previous desktop file on RW*/
+ for(; uiapplication; uiapplication=uiapplication->next) {
+ snprintf(filepath, sizeof(filepath),"%s%s.desktop", DESKTOP_RW_PATH, uiapplication->appid);
+ ret = remove(filepath);
+ if (ret <0)
+ return -1;
+ }
+
+ return 0;
+ }
+}