summaryrefslogtreecommitdiff
path: root/overlays/quickshell/close-stdin.patch
blob: 230c602cc13308edc3bf7459e57ed5e5cbd37f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git i/src/io/process.cpp w/src/io/process.cpp
index 6055e2c..f528438 100644
--- i/src/io/process.cpp
+++ w/src/io/process.cpp
@@ -210,7 +210,7 @@ void Process::startProcessIfReady() {
 
 	if (this->mStdoutParser == nullptr) this->process->closeReadChannel(QProcess::StandardOutput);
 	if (this->mStderrParser == nullptr) this->process->closeReadChannel(QProcess::StandardError);
-	if (!this->mStdinEnabled) this->process->closeWriteChannel();
+	if (!this->mStdinEnabled) this->process->setStandardInputFile(QProcess::nullDevice());
 
 	this->setupEnvironment(this->process);
 	this->process->start(cmd, args);