diff options
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 | } |
