2

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.

  1. Installed the xdg-desktop-portal-kde.
  2. Edited /usr/share/xdg-desktop-portal/portals/kde.portal to add the value of $XDG_CURRENT_DESKTOP: UseIn=KDE;XFCE.
  3. Added GTK_USE_PORTAL=1 to ~/.pam_environment.
  4. 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?

1 Answers1

3

At least on Fedora 36 KDE Plasma to get Plasma/KDE native file dialog In Thunderbird you have to:

  • Open settings ->
  • scroll to the bottom ->
  • click on Config Editor ->
  • search for: widget.use-xdg-desktop-portal.file-picker
  • Set the value to "1" (no quotes) from the default "2".

No need to prefix the program execution with any, above mentioned, environment variables.

Rohit Gupta
  • 5,096
a.key
  • 31