Browse Source

Pipe clipboard process output to null on Linux

timvisee 5 years ago
parent
commit
ff657683cc
1 changed files with 1 additions and 1 deletions
  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() {