Show clipboard information on Linux in debug command output

Fixes gitlab.com/timvisee/ffsend#80
This commit is contained in:
timvisee 2019-03-25 17:55:53 +01:00
parent 32e0e1c48f
commit c2dfd3e174
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -96,6 +96,17 @@ impl<'a> Debug<'a> {
Cell::new(&api_version_list().join(", ")),
]));
// Clipboard information
#[cfg(all(feature = "clipboard", target_os = "linux"))]
table.add_row(Row::new(vec![
Cell::new("Clipboard:"),
Cell::new(
&option_env!("XCLIP_PATH")
.map(|path| format!("xclip ({})", path))
.unwrap_or_else(|| "xclip".into()),
),
]));
// Show whether quiet is used
table.add_row(Row::new(vec![
Cell::new("Quiet:"),