Firefox has a facility to use native file pickers via xdg-portals, which most of the internet will tell you is set in a key in about:config
called widget.use-xdg-desktop-portal
. Quite some time ago, that was split into more granular keys so those instructions aren’t useful anymore.
I finally got irritated enough to look into it this morning, turns out now switching your file picker is now via the key widget.use-xdg-desktop-portal.file-picker
with values “0” (never), “1” (always), “2” (auto, apparently meaning “when run from a Flatpack”). There are similar keys for open-uri, mime-handler, etc. Most of the documentation on the internet is still the old version, though (of course) the Arch Wiki page on the topic is correct and up to date, and I should have looked there instead of googling.
You have to have a suitable xdg-desktop-portal package installed to plumb the picker, which varies a bit from distribution-to-distribution and environment-to-environment, on Arch+KDE it’s xdg-desktop-portal-kde.
I find the whole portals arrangement architecturally ugly, but important thing is that I can get rid of that obnoxious buttons-on-the-top GTK filepicker dialog, which is both ugly and upside down from the rest of the universe.
Web Presence
Page Navigation
Meta
-
Recent Posts
Random Quote
There’s an old story about the person who wished his computer were as easy to use as his telephone. That wish has come true, since I no longer know how to use my telephone.
— Bjarne StroustrupCategories
License
Unless otherwise noted, this work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.