diff --git a/mux/Cargo.toml b/mux/Cargo.toml index 162dc0abb..1221c0252 100644 --- a/mux/Cargo.toml +++ b/mux/Cargo.toml @@ -26,7 +26,6 @@ ratelim= { path = "../ratelim" } regex = "1" serde = {version="1.0", features = ["rc", "derive"]} ssh2 = "0.9" -sysinfo = "0.16" terminfo = "0.7" termwiz = { path = "../termwiz" } textwrap = "0.13" @@ -35,3 +34,6 @@ tmux-cc = { path = "../tmux-cc" } unicode-segmentation = "1.7" url = "2" wezterm-term = { path = "../term", features=["use_serde"] } + +[target.'cfg(all(windows, target_os="linux", target_os="macos"))'.dependencies] +sysinfo = "0.16" diff --git a/mux/src/localpane.rs b/mux/src/localpane.rs index 8434e8a05..2605bed03 100644 --- a/mux/src/localpane.rs +++ b/mux/src/localpane.rs @@ -595,7 +595,10 @@ impl LocalPane { } fn divine_process_list(&self) -> Vec { + #[allow(unused_mut)] let mut proc_names = vec![]; + + #[cfg(all(windows, target_os = "linux", target_os = "macos"))] if let ProcessState::Running { child, .. } = &*self.process.borrow() { if let Some(pid) = child.process_id() { use sysinfo::{Pid, ProcessExt, RefreshKind, System, SystemExt};