diff --git a/record-daemon/src/recording/process_audio.rs b/record-daemon/src/recording/process_audio.rs index 6dec6ed..a12df1d 100644 --- a/record-daemon/src/recording/process_audio.rs +++ b/record-daemon/src/recording/process_audio.rs @@ -448,6 +448,10 @@ fn pids_of(exe: &str) -> Vec { } /// `Discord.exe` and `discord` name the same process. +/// +/// Only the Windows process walk compares names; elsewhere the settings screen does its own and +/// this is left to the test. +#[cfg(any(target_os = "windows", test))] fn normalize(name: &str) -> String { let name = name.trim().to_ascii_lowercase(); name.strip_suffix(".exe").unwrap_or(&name).to_string()