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 | |
| parent | 395ca23e9599460cdfa91c34ae52296edf7cfd41 (diff) | |
| download | nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.gz nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.bz2 nixos-20577d184c030a23a6b384b8570f583bb32f14d2.tar.xz nixos-20577d184c030a23a6b384b8570f583bb32f14d2.zip | |
wf-recorderflakes
Diffstat (limited to 'overlays/quickshell')
| -rw-r--r-- | overlays/quickshell/close-stdin.patch | 13 | ||||
| -rw-r--r-- | overlays/quickshell/default.nix | 1 |
2 files changed, 14 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); | ||
diff --git a/overlays/quickshell/default.nix b/overlays/quickshell/default.nix index 942eb931..9aefeeb4 100644 --- a/overlays/quickshell/default.nix +++ b/overlays/quickshell/default.nix | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | ./lock-state-changed.patch | 19 | ./lock-state-changed.patch |
| 20 | ./pipewire.patch | 20 | ./pipewire.patch |
| 21 | ./io.patch | 21 | ./io.patch |
| 22 | ./close-stdin.patch | ||
| 22 | ]; | 23 | ]; |
| 23 | }); | 24 | }); |
| 24 | } | 25 | } |
