Hi, Am Freitag, 10. Juli 2020, 09:57:51 CEST schrieb Wolfgang Rosenauer:
Hi,
Am 10.07.20 um 08:26 schrieb Tom:
Hi all,
it seems like Thunderbird and Firefox use GTK dialogs for opening and saving files by default.
That should not be the case, we have Firefox patched to use Qt ones. Maybe you're missing kmozillahelper?
To make them use native KDE dialogs the environment variable GTK_USE_PORTAL must be set to 1. One way to do that is to edit the .desktop files for the applications [1].
Alternatively, the line
export GTK_USE_PORTAL=1
can be added in ~/.profile or even globally under /etc/profile.d/.
Would it make sense to add the global export in a package (e.g., a branding package)? This should make Firefox and Thunderbird use the KDE file dialogs by default for most users. Or would that have any unwanted side effects?
It seems to be the only option to get some sense into GTK and force it to integrate at least a bit. The issue is that this not only affects Firefox and its dialogs, but also other GTK 3+ applications and even those only inconsistently (GTK applications have to be programmed to explicitly use native file dialogs). AFAIK, it also means that certain settings are read over the portal instead of using the local configuration, which can lead to inconsistencies. Whether those downsides outweigh the upsides remains to be seen, definitely needs extensive testing.
I have some stupid questions about GTK_USE_PORTAL: When I check the Firefox code GTK_USE_PORTAL is already activated for Firefox when running in wayland mode. So you are asking if it should be used always instead of the native implementation?
Also openSUSE is shipping since ages with a patch to replace the Gtk filepicker with the KDE one when running under KDE. Wondering if this xdg-desktop-portal stuff will make this completely obsolete? Anyone has insights?
That's what I'm hoping for, but it's not a complete replacement yet. It doesn't support selecting directories and non-local files for instance, but I'd have to check again. Not sure about the button order. There are parts which the portal supports, but the mozilla integration patches don't, like print dialogs. I haven't tested those though. Cheers, Fabian
Thanks, Wolfgang
-- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org