The Complete Computer

Firefox can use KDE file dialogs

LifeTechEmacsArcology

As of Firefox 64 it's finally possible to use KDE's file dialog in Firefox and other GTK applications without having to install LD_PRELOAD hacks. By telling GTK to use the desktop portal and ensuring that I have the correct desktop portal package installed (handled by default in recent Fedora KDE Linux releases) I have access to KDE's file manager dialogs, which can be configured to be palatable to me.

shell source: :tangle bash_profile.d/50-firefox-gtk-portal.sh :mkdirp yes
export GTK_USE_PORTAL=1
yaml source: 
- fail: msg="not implemented for non-dnf" when: ansible_pkg_mgr != "dnf" tags: - firefox-portal - name: ensure xdg-desktop-portal-gtk is not installed dnf: state: absent name: xdg-desktop-portal-gtk tags: - firefox-portal - name: ensure xdg-desktop-portal-kde is installed dnf: state: installed name: xdg-desktop-portal-kde tags: - firefox-portal