forward all channels of started subprocesses
there is no practical reason I can see for why this should be limited to stderr only. we are not reading or otherwise consuming stdout, we should just pass it on.
This commit is contained in:
parent
0ca7b40da0
commit
1ede84f4fe
1 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ void ApplicationWayland::startSession()
|
|||
if (!arguments.isEmpty()) {
|
||||
QString program = arguments.takeFirst();
|
||||
QProcess *p = new QProcess(this);
|
||||
p->setProcessChannelMode(QProcess::ForwardedErrorChannel);
|
||||
p->setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
p->setProcessEnvironment(processStartupEnvironment());
|
||||
connect(p, qOverload<int, QProcess::ExitStatus>(&QProcess::finished), this, [p](int code, QProcess::ExitStatus status) {
|
||||
p->deleteLater();
|
||||
|
@ -245,7 +245,7 @@ void ApplicationWayland::startSession()
|
|||
// note: this will kill the started process when we exit
|
||||
// this is going to happen anyway as we are the wayland and X server the app connects to
|
||||
QProcess *p = new QProcess(this);
|
||||
p->setProcessChannelMode(QProcess::ForwardedErrorChannel);
|
||||
p->setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
p->setProcessEnvironment(processStartupEnvironment());
|
||||
p->setProgram(program);
|
||||
p->setArguments(arguments);
|
||||
|
|
Loading…
Reference in a new issue