1
0
mirror of https://github.com/timvisee/ffsend.git synced 2025-01-31 19:51:35 +01:00

Pipe clipboard process output to null on Linux

This commit is contained in:
timvisee 2019-12-03 13:47:25 +01:00
parent e9f7dde6fa
commit ff657683cc
No known key found for this signature in database
GPG Key ID: E293DE9CDA1A9664

View File

@ -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() {