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
This commit is contained in:
Dandaedre 2026-10-15 01:37:49 +02:00
parent 25e61c2138
commit 8aef74f271
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 13 additions and 2 deletions

View File

@ -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]

View File

@ -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]]