From 7726ae45cf174850c8747a36ba7107402ff14c4c Mon Sep 17 00:00:00 2001 From: Alexis Lopez Zubieta Date: Tue, 20 Aug 2019 16:18:11 -0500 Subject: [PATCH] Don't store process pid while launching the target AppImge --- .../AppImageServicesLauncher.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/appimageservices-interfaces/AppImageServicesLauncher.cpp b/src/appimageservices-interfaces/AppImageServicesLauncher.cpp index 7d9dc65..6357d9a 100644 --- a/src/appimageservices-interfaces/AppImageServicesLauncher.cpp +++ b/src/appimageservices-interfaces/AppImageServicesLauncher.cpp @@ -27,11 +27,13 @@ void AppImageServicesLauncher::launch(const QString& command, const QStringList& environment.insert("DESKTOPINTEGRATION", "False"); process->setEnvironment(environment.toStringList()); - qDebug() << "Launching: " << command << args; - qDebug() << "Launch environment: " << environment.toStringList(); + qDebug() << "Launching: " << command << args.join(" "); + qDebug() << "Launch environment:"; + for (const QString& entry : environment.toStringList()) + qDebug() << entry; + qDebug() << "\n"; - qint64 pid; - if (process->startDetached(&pid)) + if (process->startDetached()) qApp->exit(); else qApp->exit(-1);