Keep existing AppRun (#335)

Keep existing AppRun, closes #159
This commit is contained in:
probonopd
2018-12-15 11:12:48 +00:00
committed by GitHub
parent 0dd02e3c3d
commit 600fc20ea7
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -260,11 +260,11 @@ int main(int argc, char **argv)
QFile appRun(appDirPath + "/AppRun");
if(appRun.exists()){
appRun.remove();
qDebug() << "Keeping existing AppRun";
} else {
QFile::link(relativeBinPath, appDirPath + "/AppRun");
}
QFile::link(relativeBinPath, appDirPath + "/AppRun");
/* Copy the desktop file in place, into the top level of the AppDir */
if(desktopFile != ""){
QString destination = QDir::cleanPath(appDirPath + "/" + QFileInfo(desktopFile).fileName());