Add additional check on link creation (#403)

This commit is contained in:
Alexander Gorishnyak
2019-11-23 03:04:07 +06:00
committed by probonopd
parent 992d7afbfe
commit 5195ec194e
+3 -1
View File
@@ -381,7 +381,9 @@ int main(int argc, char **argv)
if(appRun.exists()){ if(appRun.exists()){
qDebug() << "Keeping existing AppRun"; qDebug() << "Keeping existing AppRun";
} else { } else {
QFile::link(relativeBinPath, appDirPath + "/AppRun"); if (!QFile::link(relativeBinPath, appDirPath + "/AppRun")) {
LogError() << "Could not create AppRun link";
}
} }
/* Copy the desktop file in place, into the top level of the AppDir */ /* Copy the desktop file in place, into the top level of the AppDir */