How to reload mime database after update ? Gtk application crashes on icon load

Looks like Calibre will try to use zenity on GNOME when available (which should be wrapped), and when it fails it will use the file dialogue provided by Qt:

And it appears Qt will use the portal for file chooser if you set QT_QPA_PLATFORMTHEME=xdgdesktopportal environment variable.

Maybe we should do that by default in GNOME/when xdg-desktop-portal is enabled – but it might conflict with adwaita-qt. Edit: qgnomeplatform is the component to worry about and it already uses portals when available. It would probably be best to just enable the theme like Pantheon does. Edit 2: Opened nixos/gnome: enable platform integration for Qt by jtojnar · Pull Request #136071 · NixOS/nixpkgs · GitHub.