7

While getting Firefox to use KDE / Plasma dialogs was not straightforward, following this link and rebooting my machine got it working.

Thunderbird seems to be another kind of animal, though.

Copying the thunderbird.desktop file to my home directory does not help. Editing the menu entry to look like GTK_USE_PORTAL=1 thunderbird does not help.

I am able to get the plasma dialogs by running the above command from terminal, which then throws lots of errors:

~$ GTK_USE_PORTAL=1 thunderbird
[calBackendLoader] Using Thunderbird's libical backend
console.debug: "Successfully loaded OpenPGP library librnp.so from /usr/lib/thunderbird/librnp.so"
Extension error: Error while loading 'jar:file:///usr/lib/thunderbird/omni.ja!/chrome/messenger/search-extensions/twitter/manifest.json' (NS_ERROR_FILE_NOT_FOUND) resource://gre/modules/Extension.jsm:570 :: readJSON/</<@resource://gre/modules/Extension.jsm:570:20
onStopRequest@resource://gre/modules/NetUtil.jsm:128:18

console.debug: "public keys: 0, secret keys: 0" console.debug: "Successfully loaded optional OpenPGP library libgpgme.so.11 from system's standard library locations" console.debug: "gpgme version: 1.13.1-unknown" console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 75)) JavaScript error: chrome://chat/content/conversation-browser.js, line 853: NotSupportedError: CustomElementRegistry.define: 'conversation-browser' has already been defined as a custom element JavaScript error: , line 0: uncaught exception: 2147500036

Thunderbird eventually opens, asking me to select system integration. Then it will use Plasma dialogs, but on next startup it will return to its default dialog.

So, how do I get Thunderbird to use KDE / Plasma file dialogs every time?

Al F
  • 1,189

2 Answers2

8

Edit --> Preferences then at the end click "Config Editor..:" in the config editor search for xdg toggle widget.use-xdg-desktop-portal to true

xdg__
  • 81
1

Using Thunderbird 128.4.3esr (64-bit) in Fedora KDE 41 (it may be different in Ubuntu if your TB is running as a Snap or Flatpak, I wouldn´t know).

Otherwise, you need to combine XDG answer with the two comments related to it.

Edit --> Preferences then at the end click "Config Editor..:" in the config editor search for xdg toggle widget.use-xdg-desktop-portal to true

And then:

  • add use-xdg-desktop-portal and widget.use-xdg-desktop-portal as booleans, set both to true;
  • search subproperties of use-xdg-desktop-portal (file-picker, location, mime-handler, open-uri, settings) I´ve changed all from 2 to 1 (property type number, no quotes here, only digits are valid!). You might want to experiment on these. Maybe not all of them are needed? Not sure of side-effects.

If you haven´t found Config Editor yet, you haven´t scrolled down to the bottom of the preferences page. Try maximising your TB window until you see the bottom of the Settings page.

Screenshot of the changes in Config Editor containing property name ¨use-xdg-desktop-portal¨

BogdanBiv
  • 375