Merge branch 'xclip_path' into 'master'

Support XCLIP_PATH at compilation to control the path to xclip

Closes #71

See merge request timvisee/ffsend!22
This commit is contained in:
Tim Visée 2019-03-19 06:59:15 +00:00
commit 2f10b2f057

View file

@ -297,7 +297,7 @@ pub fn set_clipboard(content: String) -> Result<(), ClipboardError> {
#[cfg(target_os = "linux")]
{
// Open an xclip process
let mut process = match Command::new("xclip")
let mut process = match Command::new(option_env!("XCLIP_PATH").unwrap_or("xclip"))
.arg("-sel")
.arg("clip")
.stdin(Stdio::piped())