Skip to content

Commit

Permalink
Don't store process pid while launching the target AppImge
Browse files Browse the repository at this point in the history
  • Loading branch information
azubieta committed Aug 20, 2019
1 parent 4b6f758 commit 7726ae4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/appimageservices-interfaces/AppImageServicesLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7726ae4

Please # to comment.