summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 02:52:14 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:59 -0500
commita88f9dd9a703c23263b5561d3cae126e90e36f3f (patch)
tree48a76a1e24be932ee4056c2008ce4c01d5092810 /src/main.cpp
parentb855754c9708c825e6bc1e995cb0262c065c5d20 (diff)
removed runExecutableOrExecutableFile()
log the actual spawning and requests to start as well as wait from plugins raise the lock widget when it's a dialog
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9decb94e..2b9a2f4d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -653,15 +653,21 @@ int runApplication(MOApplication &application, SingleInstance &instance,
else {
QString exeName = arguments.at(1);
log::debug("starting {} from command line", exeName);
+
arguments.removeFirst(); // remove application name (ModOrganizer.exe)
arguments.removeFirst(); // remove binary name
- // pass the remaining parameters to the binary
- try {
- organizer.processRunner().runExecutableOrExecutableFile(
- exeName, arguments, QString(), QString());
+
+ try
+ {
+ // pass the remaining parameters to the binary
+ organizer.processRunner()
+ .setFromFileOrExecutable(exeName, arguments)
+ .setWaitForCompletion(ProcessRunner::NoRefresh)
+ .run();
return 0;
}
- catch (const std::exception &e) {
+ catch (const std::exception &e)
+ {
reportError(
QObject::tr("failed to start application: %1").arg(e.what()));
return 1;