forge
Explore
Log in

Don't you dare go Hollow

Add new types to Mutter.ServiceChannel

Browse files at this commit

d054395225560bbd39a76f958a5f612de4f284b0Ivan MolodetskikhParent: fc9e8c4
Works around nautilus libgxdp crash.
src/dbus/mutter_service_channel.rsmodified+8 -1
@@ -15,7 +15,14 @@ impl ServiceChannel {
15 &mut self,15 &mut self,
16 service_client_type: u32,16 service_client_type: u32,
17 ) -> fdo::Result<zvariant::OwnedFd> {17 ) -> fdo::Result<zvariant::OwnedFd> {
18- if service_client_type != 1 {18+ // ServiceClientTypes:
19+ // PORTAL_BACKEND: 1
20+ // FILECHOOSER_PORTAL_BACKEND: 2
21+ // GLOBAL_SHORTCUTS_PORTAL_BACKEND: 3
22+ //
23+ // In mutter, 1 and 2 get access to mutter_x11_interop.
24+ // Ours is a stub, so we don't do this filtering.
25+ if !matches!(service_client_type, 1..=3) {
19 return Err(fdo::Error::InvalidArgs(26 return Err(fdo::Error::InvalidArgs(
20 "Invalid service client type".to_owned(),27 "Invalid service client type".to_owned(),
21 ));28 ));