Browse Source

Add additional check on link creation (#403)

master
Alexander Gorishnyak 5 years ago
committed by probonopd
parent
commit
5195ec194e
  1. 4
      tools/linuxdeployqt/main.cpp

4
tools/linuxdeployqt/main.cpp

@ -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 */

Loading…
Cancel
Save