Return error if icon can't be found

This commit is contained in:
TheAssassin
2018-06-18 04:19:22 +02:00
parent a38d8f11f1
commit 47295b7a2a

View File

@@ -531,6 +531,8 @@ namespace linuxdeploy {
return false;
}
bool iconDeployed = false;
const auto foundIconPaths = deployedIconPaths();
if (foundIconPaths.empty()) {
@@ -548,9 +550,17 @@ namespace linuxdeploy {
ldLog() << LD_ERROR << "Failed to create symlink for icon in AppDir root:" << iconPath << std::endl;
return false;
}
iconDeployed = true;
break;
}
}
if (!iconDeployed) {
ldLog() << LD_ERROR << "Could not find suitable icon for Icon entry:" << iconName << std::endl;
return false;
}
if (!customAppRunPath.empty()) {
// copy custom AppRun executable
// FIXME: make sure this file is executable