diff --git a/src/dbus/mutter_service_channel.rs b/src/dbus/mutter_service_channel.rs index 89d31345..4de971f5 100644 --- a/src/dbus/mutter_service_channel.rs +++ b/src/dbus/mutter_service_channel.rs @@ -15,7 +15,14 @@ impl ServiceChannel { &mut self, service_client_type: u32, ) -> fdo::Result { - if service_client_type != 1 { + // ServiceClientTypes: + // PORTAL_BACKEND: 1 + // FILECHOOSER_PORTAL_BACKEND: 2 + // GLOBAL_SHORTCUTS_PORTAL_BACKEND: 3 + // + // In mutter, 1 and 2 get access to mutter_x11_interop. + // Ours is a stub, so we don't do this filtering. + if !matches!(service_client_type, 1..=3) { return Err(fdo::Error::InvalidArgs( "Invalid service client type".to_owned(), ));