diff --git a/src/xdg-desktop-portal.c b/src/xdg-desktop-portal.c index 396ee2438..fc84030d1 100644 --- a/src/xdg-desktop-portal.c +++ b/src/xdg-desktop-portal.c @@ -253,7 +253,8 @@ on_bus_acquired (GDBusConnection *connection, export_portal_implementation (connection, realtime_create (connection)); impls = find_all_portal_implementations ("org.freedesktop.impl.portal.Settings"); - export_portal_implementation (connection, settings_create (connection, impls)); + if (impls->len > 0) + export_portal_implementation (connection, settings_create (connection, impls)); g_ptr_array_free (impls, TRUE); implementation = find_portal_implementation ("org.freedesktop.impl.portal.FileChooser");