diff options
Diffstat (limited to 'overlays/quickshell/close-stdin.patch')
| -rw-r--r-- | overlays/quickshell/close-stdin.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/overlays/quickshell/close-stdin.patch b/overlays/quickshell/close-stdin.patch new file mode 100644 index 00000000..230c602c --- /dev/null +++ b/overlays/quickshell/close-stdin.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | diff --git i/src/io/process.cpp w/src/io/process.cpp | ||
| 2 | index 6055e2c..f528438 100644 | ||
| 3 | --- i/src/io/process.cpp | ||
| 4 | +++ w/src/io/process.cpp | ||
| 5 | @@ -210,7 +210,7 @@ void Process::startProcessIfReady() { | ||
| 6 | |||
| 7 | if (this->mStdoutParser == nullptr) this->process->closeReadChannel(QProcess::StandardOutput); | ||
| 8 | if (this->mStderrParser == nullptr) this->process->closeReadChannel(QProcess::StandardError); | ||
| 9 | - if (!this->mStdinEnabled) this->process->closeWriteChannel(); | ||
| 10 | + if (!this->mStdinEnabled) this->process->setStandardInputFile(QProcess::nullDevice()); | ||
| 11 | |||
| 12 | this->setupEnvironment(this->process); | ||
| 13 | this->process->start(cmd, args); | ||
