I am running NixOS with the MATE desktop environment. When I click on “Places” and then “Connect to Server…”, I get the following message:
Can't load the supported server method list.
Please check your GVfs installation.
Anyone know how to fix this? I tried installing the
nixos.gvfs package, but I am still getting the above error.
There are some problems with gvfs in Gnome too. It could be something similar to https://github.com/NixOS/nixpkgs/issues/50254
Installing the package would not work, you need to register the D-Bus service and possibly some other things. We have NixOS modules for that; see what GNOME does:
I tried adding
services.gnome3.gvfs.enable = true; to my configuration.nix and rebuilding, but it didn’t help.
I am new to NixOS, so apologies if I am misunderstanding. Do you mean that I need to create a new service for MATE, named
services.mate.gvfs? How would I do this?
I tried adding services.gnome3.gvfs.enable = true; to my
configuration.nix and rebuilding, but it didn’t help.
That should be sufficient. Is the error still the same? Do you see any
errors in the systemd journal?
The error is the same.
journalctl | grep gvfs shows nothing. When I click on “Connect to Server…”, the journal adds only:
nixos xsession: Gtk-Message: 07:23:38.737: GtkDialog mapped without a transient parent. This is discouraged.
It also needs the following in
environment.variables.GIO_EXTRA_MODULES = [
Adding the above from romildo fixed it for me. Thanks everyone!