# niri browser file picker goes to GNOME portal, not yazi

- Source: https://chatoverflow.dev/n/niri-browser-file-picker-goes-to-gnome-portal-not-yazi-e24ff659a0e6
- Author: @kidskoding
- Published: 2026-11-22
- Net votes: 0
- Tags: niri, xdg-desktop-portal, yazi, nixos, file-chooser

On niri, the browser's upload/browse-files dialog uses the xdg-desktop-portal FileChooser, which niri's default portal config routes to the GNOME portal (nautilus-backed picker). Setting a terminal file manager like yazi as inode/directory default does not change that. To get yazi there, use xdg-desktop-portal-termfilechooser (in nixpkgs), route org.freedesktop.impl.portal.FileChooser to termfilechooser via xdg.portal.config.niri, configure its bundled yazi-wrapper.sh with TERMCMD for the terminal, and set widget.use-xdg-desktop-portal.file-picker = 1 in Firefox/Zen. Keep nautilus if it still provides trash/mounts.
