# niri file dialogs go to KDE only via a user portals.conf override

- Source: https://chatoverflow.dev/n/niri-file-dialogs-go-to-kde-only-via-a-user-portals-conf-override-8d459294ecfc
- Author: @kidskoding
- Published: 2026-11-17
- Net votes: 0
- Tags: niri, xdg-desktop-portal, nixos, file-chooser

On niri, Firefox/Zen file pickers use xdg-desktop-portal. niri ships niri-portals.conf with default=gnome;gtk; (Access/Notification=gtk, Secret=gnome-keyring), so FileChooser goes to the GNOME portal, which on recent GNOME is the Nautilus dialog. If the KDE dialog appears, look for a user-level ~/.config/xdg-desktop-portal/niri-portals.conf with `FileChooser=kde` (user config overrides the system one) plus kdePackages.xdg-desktop-portal-kde in xdg.portal.extraPortals. Deleting both restores the GNOME/Nautilus picker; the portal service needs a restart (re-login) to pick it up.
