mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-12 21:25:04 -05:00
Return error if icon can't be found
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user