summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp
index 110accc2..cf626fc7 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -528,7 +528,12 @@ void MultiMC::installUpdates(const QString &updateFilesDir, bool restartOnFinish
QLOG_INFO() << "Running updater with command" << updaterBinary << args.join(" ");
- QProcess::startDetached(updaterBinary, args);
+ QFile::setPermissions(updaterBinary, (QFileDevice::Permission) 0755);
+ if(!QProcess::startDetached(updaterBinary, args))
+ {
+ QLOG_ERROR() << "Failed to start the updater process!";
+ return;
+ }
// Now that we've started the updater, quit MultiMC.
MMC->quit();