From 18a952d4c11e4c9d33a2e47f3dc4f4badf0f5c57 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Thu, 19 Nov 2026 22:50:16 +0100 Subject: [PATCH] record-daemon: keep the process-name helper Windows-only The process walk that compares exe names is the Windows one; on Linux nothing called normalize, and -Dwarnings in CI made that a failure. --- record-daemon/src/recording/process_audio.rs | 4 ++++ 1 file changed, 4 insertions(+) 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()