From 5195ec194e06796fc60d03c8e27183606dfe098b Mon Sep 17 00:00:00 2001 From: Alexander Gorishnyak Date: Sat, 23 Nov 2019 03:04:07 +0600 Subject: [PATCH] Add additional check on link creation (#403) --- tools/linuxdeployqt/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/linuxdeployqt/main.cpp b/tools/linuxdeployqt/main.cpp index fcdea9e..a1d5f12 100644 --- a/tools/linuxdeployqt/main.cpp +++ b/tools/linuxdeployqt/main.cpp @@ -381,7 +381,9 @@ int main(int argc, char **argv) if(appRun.exists()){ qDebug() << "Keeping existing AppRun"; } 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 */