Skip to content

Commit 5195ec1

Browse files
kefir500probonopd
authored andcommitted
Add additional check on link creation (#403)
1 parent 992d7af commit 5195ec1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/linuxdeployqt/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ int main(int argc, char **argv)
381381
if(appRun.exists()){
382382
qDebug() << "Keeping existing AppRun";
383383
} else {
384-
QFile::link(relativeBinPath, appDirPath + "/AppRun");
384+
if (!QFile::link(relativeBinPath, appDirPath + "/AppRun")) {
385+
LogError() << "Could not create AppRun link";
386+
}
385387
}
386388

387389
/* Copy the desktop file in place, into the top level of the AppDir */

0 commit comments

Comments
 (0)