Fixed account icon path to manifest file
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 27 Sep 2013 06:44:30 +0000 (15:44 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Tue, 1 Oct 2013 07:10:06 +0000 (07:10 +0000)
[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: <tizen:icon section="Account">icon.png</tizen:icon>
- old manifest: <icon section="account">icon.png</icon>
- new manifest: <icon section="account">/opt/usr/apps/[package]/res/wgt/icon.png</icon>

Change-Id: I75a531e1da1f737fbe474adc0cdedfc89cf30284

src/jobs/widget_install/task_manifest_file.cpp

index 4e6699b..dc5f844 100644 (file)
@@ -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);
     }