anchor.diff:          # Add mate-control-center paths to some XDG variables because its schemas are needed by mate-settings-daemon, and mate-settings-daemon is a dependency for mate-control-center (that is, they are mutually recursive)
           ${addToXDGDirs pkgs.mate.mate-control-center}
   
  -        # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
  -        ${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update
  -
           ${pkgs.mate.mate-session-manager}/bin/mate-session ${optionalString cfg.debug "--debug"} &
           waitPID=$!
         '';
  
positive.code:       pkgs.mate.basePackages ++
        (pkgs.gnome3.removePackagesByName
          pkgs.mate.extraPackages
          config.environment.mate.excludePackages);
  
      services.dbus.packages = [
        pkgs.gnome3.dconf
        pkgs.at-spi2-core
      ];
  
      services.gnome3.gnome-keyring.enable = true;
      services.gnome3.gnome-settings-daemon.enable = true;
      services.gnome3.gnome-settings-daemon.package = pkgs.mate.mate-settings-daemon;
  
negative.code: 
          export XDG_MENU_PREFIX=mate-
  
          # Let caja find extensions
          export CAJA_EXTENSION_DIRS=$CAJA_EXTENSION_DIRS''${CAJA_EXTENSION_DIRS:+:}${config.system.path}/lib/caja/extensions-2.0
  
  