Move desktop file deployment away from desktop file lookup

This commit is contained in:
Alexis Lopez Zubieta
2018-11-04 17:42:11 -06:00
parent bd12fefc35
commit 93fea697e5

View File

@@ -61,19 +61,20 @@ namespace linuxdeploy {
<< desktopFile.path() << std::endl;
}
ldLog() << "Deploying desktop file:" << desktopFile.path() << std::endl;
}
bool rv;
ldLog() << "Deploying desktop file:" << desktopFile.path() << std::endl;
if (!customAppRunPath.empty()) {
rv = appDir.createLinksInAppDirRoot(desktopFile, customAppRunPath);
} else {
rv = appDir.createLinksInAppDirRoot(desktopFile);
}
bool rv;
if (!rv) {
return 1;
}
if (!customAppRunPath.empty()) {
rv = appDir.createLinksInAppDirRoot(desktopFile, customAppRunPath);
} else {
rv = appDir.createLinksInAppDirRoot(desktopFile);
}
if (!rv) {
return 1;
}
}
return true;