Icon name should match appid. Checking by prefix is invalid.
Change-Id: I2b3894e868f7ff9a26b7139f8463593e978e8b3d
for (application_x* app : GListRange<application_x*>(
context_->old_manifest_data.get()->application)) {
if (app->icon) {
- std::string filename = iter->path().filename().string();
- if (filename.find(app->appid) == 0) {
+ bf::path filename = iter->path().filename();
+ filename.replace_extension();
+ std::string id = filename.string();
+ if (id == app->appid) {
bf::path icon_backup = GetBackupPathForIconFile(iter->path());
icons_.emplace_back(iter->path(), icon_backup);
}