fix: doesn't redirect the stderr of the clipboard command to null (#119)

This commit is contained in:
三咲雅 · Misaki Masa 2023-09-07 14:58:06 +08:00 committed by GitHub
parent ac58f709a5
commit 0ff1479ce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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