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:
parent
25e61c2138
commit
8aef74f271
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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]]
|
||||
|
|
|
|||
Loading…
Reference in New Issue