{"id":59868,"date":"2024-03-06T09:45:24","date_gmt":"2024-03-06T14:45:24","guid":{"rendered":"https:\/\/pappp.net\/?p=59868"},"modified":"2024-03-06T09:45:24","modified_gmt":"2024-03-06T14:45:24","slug":"firefox-config-keys-for-use-of-xdg-desktop-portal-for-eg-qt-file-picker","status":"publish","type":"post","link":"https:\/\/pappp.net\/?p=59868","title":{"rendered":"Firefox config keys for use of xdg-desktop-portal (For eg. QT File Picker)"},"content":{"rendered":"\n<p>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 <code>about:config<\/code> called <code>widget.use-xdg-desktop-portal<\/code>.  Quite some time ago, that was split into more granular keys so those instructions aren&#8217;t useful anymore.  <br \/><br \/>I finally got irritated enough to look into it this morning, turns out now switching your file picker is now via the key <code>widget.use-xdg-desktop-portal.file-picker<\/code> with values &#8220;0&#8221; (never), &#8220;1&#8221; (always), &#8220;2&#8221; (auto, apparently meaning &#8220;when run from a Flatpack&#8221;).  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 <a href=\"https:\/\/wiki.archlinux.org\/title\/Firefox#XDG_Desktop_Portal_integration\">Arch Wiki<\/a> page on the topic is correct and up to date, and I should have looked there instead of googling. <br \/><br \/>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&#8217;s xdg-desktop-portal-kde. <br \/><br \/>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/pappp.net\/?p=59868\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-59868","post","type-post","status-publish","format-aside","hentry","category-computers","category-general","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/59868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59868"}],"version-history":[{"count":0,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/59868\/revisions"}],"wp:attachment":[{"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}