I ran into an issue where file picker dialogs (downloads, save as, open file) silently fail on niri when Nautilus isn't installed.
The problem is that niri-portals.conf sets default=gnome;gtk; but doesn't explicitly route FileChooser. So xdg-desktop-portal-gnome picks it up first and tries to delegate to Nautilus, which isn't there if you're not running a full GNOME desktop. The dialog just never shows up: no error, nothing.
My setup is NixOS with niri + xdg-desktop-portal-gnome + xdg-desktop-portal-gtk, no Nautilus. I noticed it in Zen Browser (Firefox-based), but it would affect any app that uses the portal for file dialogs.
Adding this line to niri-portals.conf fixes it:
org.freedesktop.impl.portal.FileChooser=gtk;
Which is consistent with how Access and Notification are already explicitly routed to gtk in the same file.
For now, I'm working around it by overriding the whole portal config at the system level, but that means I'd miss any future changes you make to the defaults.
I can open a PR if any of the maintainers prefer and consider this change useful.
Thanks!
I ran into an issue where file picker dialogs (downloads, save as, open file) silently fail on niri when Nautilus isn't installed.
The problem is that
niri-portals.confsetsdefault=gnome;gtk;but doesn't explicitly routeFileChooser. Soxdg-desktop-portal-gnomepicks it up first and tries to delegate to Nautilus, which isn't there if you're not running a full GNOME desktop. The dialog just never shows up: no error, nothing.My setup is NixOS with niri +
xdg-desktop-portal-gnome+xdg-desktop-portal-gtk, no Nautilus. I noticed it in Zen Browser (Firefox-based), but it would affect any app that uses the portal for file dialogs.Adding this line to
niri-portals.conffixes it:org.freedesktop.impl.portal.FileChooser=gtk;Which is consistent with how
AccessandNotificationare already explicitly routed togtkin the same file.For now, I'm working around it by overriding the whole portal config at the system level, but that means I'd miss any future changes you make to the defaults.
I can open a PR if any of the maintainers prefer and consider this change useful.
Thanks!