#include <FIoDbEnumerator.h>
#include <FIoDbStatement.h>
#include <FIoFile.h>
+#include <FIoDirectory.h>
#include <FBase_StringConverter.h>
#include "FAppPkg_PackageManagerImpl.h"
SysTryReturnResult(NID_APP, pAppId, E_OUT_OF_MEMORY, "pAppId is null");
res = pkgmgrinfo_appinfo_get_appinfo(pAppId.get(), &__pAppInfoHandle);
- SysTryReturnResult(NID_APP, res == 0, E_SYSTEM, "pkgmgrinfo_appinfo_get_appinfo failed, res = [%d], appId = [%s]", res, pAppId.get());
+ SysTryReturnResult(NID_APP, res == 0, E_SYSTEM, "pkgmgrinfo_appinfo_get_appinfo failed, res = [%d], app = [%s]", res, pAppId.get());
__fromDatabase = true;
res = pkgmgrinfo_appinfo_get_icon(__pAppInfoHandle, &pMenuIcon);
if (res == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_appinfo_get_icon(): MenuIcon = [%s]", pMenuIcon);
String menuIcon(pMenuIcon);
SetAppMenuIconPath(menuIcon);
}
res = pkgmgrinfo_appinfo_get_setting_icon(__pAppInfoHandle, &pSettingIcon);
if (res == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_appinfo_get_setting_icon(): SettingIcon = [%s]", pSettingIcon);
String settingIcon(pSettingIcon);
SetAppSettingIconPath(settingIcon);
}
res = pkgmgrinfo_appinfo_get_notification_icon(__pAppInfoHandle, &pNotificationIcon);
if (res == PMINFO_R_OK)
{
- SysLog(NID_APP, "pkgmgrinfo_appinfo_get_notification_icon(): NotificationIcon = [%s]", pNotificationIcon);
String notificationIcon(pNotificationIcon);
SetAppNotificationIconPath(notificationIcon);
}
if (File::IsFileExist(__appTempIconPath) == true)
{
File::Remove(__appTempIconPath);
+
+ String tmp(L"/tmp/__icon/");
+ Directory::Remove(tmp, true);
}
}