diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-04-25 15:24:42 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-04-25 15:24:42 +0200 |
| commit | 20577d184c030a23a6b384b8570f583bb32f14d2 (patch) | |
| tree | bfb7fc21d27f31218b838ede80795f525b1952fd /overlays/quickshell/close-stdin.patch | |
| parent | 395ca23e9599460cdfa91c34ae52296edf7cfd41 (diff) | |
| download | nixos-flakes.tar nixos-flakes.tar.gz nixos-flakes.tar.bz2 nixos-flakes.tar.xz nixos-flakes.zip | |
wf-recorderflakes
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); | ||
