How to use Nautilus as the file picker dialog portal?

I’m currently using the Niri compositor and it uses both xdg-desktop-portal-gtk and xdg-desktop-portal-gnome. For the file dialog, it seems that the GTK one is used, instead of Nautilus. I’ve tried to configure the portal to use the correct implementation with this:

{
  xdg.portal.config.preferred."org.freedesktop.impl.portal.FileChooser" = "gnome";
}

But it doesn’t do anything. So I would like some guidance on how to achieve this.

1 Like