Browse Source

Add -f flag to xclip, fixing hanging

Fixes #93
Bram Crielaard 5 years ago
parent
commit
69dfaa5970
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/util.rs

+ 1 - 0
src/util.rs

@@ -395,6 +395,7 @@ impl ClipboardType {
         Self::sys_cmd_set(
         Self::sys_cmd_set(
             "xclip",
             "xclip",
             Command::new(path.unwrap_or_else(|| "xclip".into()))
             Command::new(path.unwrap_or_else(|| "xclip".into()))
+                .arg("-f")
                 .arg("-sel")
                 .arg("-sel")
                 .arg("clip"),
                 .arg("clip"),
             content,
             content,