From ab15487992b2241e065b5e7182bd0340e4f423d3 Mon Sep 17 00:00:00 2001 From: Soyoung Kim Date: Fri, 27 Sep 2013 15:44:30 +0900 Subject: [PATCH] Fixed account icon path to manifest file [Issue#] N/A [Problem] Can't loaded account icon. [Cause] Account icon path is wrong to manifest file. [Solution] Changed account icon path from relative path to absolute path. [Remarks] - config.xml path: icon.png - old manifest: icon.png - new manifest: /opt/usr/apps/[package]/res/wgt/icon.png Change-Id: I75a531e1da1f737fbe474adc0cdedfc89cf30284 --- src/jobs/widget_install/task_manifest_file.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jobs/widget_install/task_manifest_file.cpp b/src/jobs/widget_install/task_manifest_file.cpp index 4e6699b..dc5f844 100644 --- a/src/jobs/widget_install/task_manifest_file.cpp +++ b/src/jobs/widget_install/task_manifest_file.cpp @@ -1212,8 +1212,12 @@ void TaskManifestFile::setAccount(Manifest& manifest) } else if (it->first == ConfigParserData::IconSectionType::SmallIcon) { icon.first = L"account-small"; } - icon.second = it->second; + // account manifest requires absolute path for icon + // /opt/apps/[package]/res/wgt/[icon_path] + icon.second = DPL::FromUTF8String(m_context.locations->getSourceDir()) + + DPL::String(L"/") + + it->second; provider.icon.push_back(icon); } -- 2.7.4