How to configure Linux to use the KDE file picker
It’s a beautiful day at the desktop, and there’s horrible GTK file picker.
Yes, I know that a lot of people use the Gnome desktop - some even claim to like it. As you might have figured by now, I don’t share that feeling.
Looking into a fix
Now, can you somehow tell your system to use a better file picker? Yes*.
Will all your installed applications respect this and use the file picker you want? Absolutely not*!
Still, we can at least try to make things better for ourselves.
Configuring the system
- Using your distro’s package manager, install the package
- (Optional) If you are not actually using KDE Pasma, you need to edit
/usr/share/xdg-desktop-portal/portals/kde.portaland add the value of
$XDG_CURRENT_DESKTOP, separated by a semi-colon to the
- Adding the line
~/.pam_environmentwill tell GTK to always behave as if it were in an sandboxed environment.
- Log out and back in to apply these changes.
Please remember that this will only work on some apps.
* As everyone using Linux knows, this is absolutely true and expected.