diff --git a/src-tauri/src/platform_browser.rs b/src-tauri/src/platform_browser.rs index 5517419..12f88f9 100644 --- a/src-tauri/src/platform_browser.rs +++ b/src-tauri/src/platform_browser.rs @@ -8,6 +8,10 @@ use std::process::Command; /// force-killed unrelated processes that happened to mention the path (editors, /// `tail`, a terminal that `cd`'d there, or another profile whose path has this /// one as a prefix). Mirrors the precise matching in browser_runner/wayfern_manager. +/// +/// Only the macOS and Linux process-kill paths use this; Windows has no +/// `find_processes_by_profile_path`, so gate it to avoid a dead-code error there. +#[cfg(any(target_os = "macos", target_os = "linux"))] fn cmd_matches_profile_path(cmd: &[std::ffi::OsString], profile_path: &str) -> bool { let args: Vec<&str> = cmd.iter().filter_map(|a| a.to_str()).collect(); for (i, arg) in args.iter().enumerate() {