Setting schema "FileChooser" is not installed on some programs

Hello,
It seems some packages has a problem with gschema not found. The packages that have this issue so far:

  • Okular kdePackages.okular
  • xca xca

It ends up like this when file menu gets triggered (File → Open…, etc):

(xca:336380): GLib-GIO-ERROR **: 10:30:02.337: Settings schema 'org.gtk.Settings.FileChooser' is not installed

In org.gtk.Settings.FileChooser’ is not installed when running i3, @jtojnar said

This means quite systemic defect or bug. I wish to investigate this but not right now. If anyone has input on how this proceed or want to add another package with this condition.

Are you on nixos atm? Usually wrapGAppsHook4 (or 3) should address this in any case.

Yes, I’m using NixOS.

Thank you I will try it and report it here.

I was able to fix it by adding the following into my configuration.nix

environment.extraInit = ''
  export XDG_DATA_DIRS="$XDG_DATA_DIRS:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
'';

That’s great reference for the user, rather than waiting for a fix.

Is this the same problem as discussed in GTK+ file dialog causes segfaults / GLib-GIO-ERROR Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'?