浏览代码

Pipe clipboard process output to null on Linux

timvisee 5 年之前
父节点
当前提交
ff657683cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/util.rs

+ 1 - 1
src/util.rs

@@ -418,7 +418,7 @@ impl ClipboardType {
         content: String,
     ) -> Result<(), ClipboardError> {
         // Spawn the command process for setting the clipboard
-        let mut process = match command.stdin(Stdio::piped()).spawn() {
+        let mut process = match command.stdin(Stdio::piped()).stdout(Stdio::null()).spawn() {
             Ok(process) => process,
             Err(err) => {
                 return Err(match err.kind() {