VirtualBox under Gnome

Hi, I’m having a problem with Virtualbox under Gnome. When I run the program in the console, I get an error:

(VirtualBox:94609): GLib-GIO-ERROR **: 17:08:46.074: Settings schema ‘org.gtk.Settings.FileChooser’ is not installed
Trace/breakpoint trap (core dumped)VirtualBox

I found two or three things to try, but none of them worked for me. Do you have any ideas on how to solve my problem?

Thx

LooPinG

this issue: some gtk3 programs crash when using file picker component when on plasma desktop · Issue #149812 · NixOS/nixpkgs · GitHub

temporary fix:

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

Thanks TinajaStyle for your feedback ;). I had already used this command, but I don’t think I restarted the system afterwards…

Solution: add this line of code to your configuration file (/etc/nixos/configuration.nix), then apply the change with the command “nixos-rebuild switch” followed by a reboot. Now VirtualBox will work correctly.