From f9de3b2ffde0efbddb3daf08e1da7464b0acd426 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Sun, 14 Jul 2024 19:07:27 +0200 Subject: [PATCH] startExecutable(): Restore error handling --- launcher/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/launcher/main.cpp b/launcher/main.cpp index 38f440cbe..9dc5f4d1b 100644 --- a/launcher/main.cpp +++ b/launcher/main.cpp @@ -115,6 +115,13 @@ void startExecutable(QString name, const QStringList & args) QProcess process; process.start(name, args); process.waitForFinished(-1); + + if (process.exitStatus() != QProcess::NormalExit || process.exitCode() != 0) { + QMessageBox::critical(qApp->activeWindow(), + QObject::tr("Error starting executable"), + QObject::tr("Failed to start %1\nReason: %2").arg(name, process.errorString())); + } + qApp->quit(); } #endif