Show clipboard information on Linux in debug command output
Fixes gitlab.com/timvisee/ffsend#80
This commit is contained in:
parent
32e0e1c48f
commit
c2dfd3e174
1 changed files with 11 additions and 0 deletions
|
@ -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:"),
|
||||
|
|
Loading…
Add table
Reference in a new issue