[Issue#] N/A
[Problem] can't get icon path at backend installer.
[Cause] icon path is wrong when hybrid web app.
[Solution] fixed icon path.
[SCMRequest] N/A
Change-Id: I675a326887c599144cdd89ab72af325cf42bb24a
std::unique_ptr<DPL::ZipInput::File> iconFile;
- iconFile.reset(zipFile->OpenFile(icon_name));
+ Try {
+ iconFile.reset(zipFile->OpenFile(icon_name));
+ }
+ Catch(DPL::ZipInput::Exception::OpenFileFailed)
+ {
+ LogDebug("This web app is hybrid web app");
+ std::string hybrid_icon = "res/wgt/" + icon_name;
+ iconFile.reset(zipFile->OpenFile(hybrid_icon));
+ }
DPL::BinaryQueue buffer;
DPL::AbstractWaitableInputAdapter inputAdapter(iconFile.get());