I'm stuck after trying and triple-checking everything from the most upvoted answer (from @ntninja) to this question. I did this on two machines - Manjaro and an old Ubuntu 18.04 LTS.
- Installed the
xdg-desktop-portal-kde
. - Edited
/usr/share/xdg-desktop-portal/portals/kde.portal
to add the value of$XDG_CURRENT_DESKTOP: UseIn=KDE;XFCE
. - Added
GTK_USE_PORTAL=1
to~/.pam_environment
. - Logged out and back in to apply these changes.
I always get the GTK file dialogs, in every app (Firefox, Thunderbird, gedit, newest VScode), etc). It doesn't work under XFCE nor under KDE/plasma. (I'm aware of the differences regarding the xdg desktop portals).
The "widget.use-xdg-desktop-portal.file-picker"=1
from Firefox's about:config
doesn't work either...
Can anybody direct me on how to troubleshoot this?
export GTK_USE_PORTAL=1
in~/.profile
instead of in~/.pam_environment
?/usr/lib/xdg-desktop-portal-kde -p BGRx
in the terminal, KDE file dialogs are shown under Plasma, but mysteriously not under XFCE. ref. https://www.mail-archive.com/[email protected]/msg584480.html