#include <widget_uninstall/task_remove_files.h>
#include <widget_uninstall/job_widget_uninstall.h>
+#include <widget_uninstall/uninstaller_context.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include <dpl/wrt-dao-ro/widget_config.h>
std::ostringstream widgetDir;
- widgetDir << GlobalConfig::GetUserInstalledWidgetPath() << "/";
- widgetDir << m_context.pkgname << "/";
+ widgetDir << m_context.locations->getPackageInstallationDir() << "/";
uninstRootDir = widgetDir.str();
ReadDir(uninstRootDir, filesList);