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:
commit
2f10b2f057
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue