-void TaskRemoveFiles::StepRemoveDesktop()
-{
- std::ostringstream desktopFile;
-
- desktopFile << GlobalConfig::GetUserWidgetDesktopPath() << "/";
- desktopFile << m_context.pkgname << ".desktop";
-
- unlink(desktopFile.str().c_str());
-
- ail_appinfo_h ai = NULL;
- ail_error_e ret;
-
- const char* package = m_context.pkgname.c_str();
- LogDebug("ail delete : " << package);
-
- ret = ail_package_get_appinfo(package, &ai);
- if (ai) {
- ail_package_destroy_appinfo(ai);
- }
-
- if (AIL_ERROR_OK == ret) {
- if ( 0 > ail_desktop_remove(package)) {
- LogWarning("Failed to remove ail information : " << package);
- }
- }
-
- m_context.job->UpdateProgress(
- UninstallerContext::UNINSTALL_REMOVE_DESKTOP,
- "Widget remove desktop Finished");
-}
-