From 8aef74f271632e853d90c4527056d39a154ac701 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 15 Oct 2026 01:37:49 +0200 Subject: [PATCH] fix(M8.1): match Waterfox browser streams Tests: cargo test --locked -p fader-config --test schema Lint: cargo clippy --locked -p fader-config --all-targets -- -D warnings Smoke: PipeWire snapshot matched Waterfox into Browser and the two-stream Media group --- config/tests/schema.rs | 11 +++++++++++ examples/profiles/arch-pipewire.toml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config/tests/schema.rs b/config/tests/schema.rs index 8a4c573..4e741d8 100644 --- a/config/tests/schema.rs +++ b/config/tests/schema.rs @@ -62,6 +62,17 @@ fn arch_pipewire_profile_matches_reported_qobuz_metadata() { ) ); assert!(!music.matches(&StreamMetadata::new().with_application_name("Firefox"))); + + let browser = profile.applications()[1] + .matcher() + .expect("validated browser selector compiles"); + assert!( + browser.matches( + &StreamMetadata::new() + .with_application_name("Waterfox") + .with_process_binary("waterfox-bin") + ) + ); } #[test] diff --git a/examples/profiles/arch-pipewire.toml b/examples/profiles/arch-pipewire.toml index e9631c5..acf2af2 100644 --- a/examples/profiles/arch-pipewire.toml +++ b/examples/profiles/arch-pipewire.toml @@ -19,8 +19,8 @@ selectors = [ id = "browser" label = "Browser" selectors = [ - { field = "application.name", regex = '(?i)(firefox|chromium|chrome|brave|librewolf)' }, - { field = "application.process.binary", regex = '(?i)^(firefox|chromium|chrome|brave|librewolf)(-.*)?$' }, + { field = "application.name", regex = '(?i)(firefox|waterfox|chromium|chrome|brave|librewolf)' }, + { field = "application.process.binary", regex = '(?i)^(firefox|waterfox|chromium|chrome|brave|librewolf)(-.*)?$' }, ] [[groups]]