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