fix: doesn't redirect the stderr of the clipboard command to null

This commit is contained in:
sxyazi 2023-09-06 23:48:31 +08:00
parent eee68a99b4
commit 846bab2107
No known key found for this signature in database

View file

@ -56,6 +56,7 @@ pub async fn clipboard_set(s: impl AsRef<std::ffi::OsStr>) -> Result<()> {
.args(args) .args(args)
.stdin(Stdio::piped()) .stdin(Stdio::piped())
.stdout(Stdio::null()) .stdout(Stdio::null())
.stderr(Stdio::null())
.kill_on_drop(true) .kill_on_drop(true)
.spawn() .spawn()
else { else {