ludo@gnu.org (Ludovic Courtès) writes: > 宋文武 skribis: > >> * guix/profiles (xdg-desktop-database): New function. >> (%default-profile-hooks): Add it. > > Nice! > >> + (update-desktop-database (string-append >> + #+desktop-file-utils >> + "/bin/update-desktop-database"))) > > This is a small dependency, but it still depends on GLib; my > understanding is that building any profile would end up pulling in GLib > because of this hook. Yes. > > Should we have some heuristic as for the GTK+ and GHC hooks to avoid > pulling it in? > > For instance, we could check whether GLib is already an indirect > dependency of at least one of the packages. WDYT? Sure, but I think check on GLib is not sufficient and necessary, when the hook run, it will use latest desktop-file-utils which may use a different version of glib. Unless I use the desktop-file-utils package installed from profile, but not like the gtk-icon-themes hook, where gtk+ is the runtime dependency, desktop-file-utils is only used to validate the desktop file during build phase, I can't get it from manifest using the same (and IMO, heavy and ugly) method. So, I end up using a simple 'manifest-lookup', which require the desktop-file-utils and shared-mime-info to be installed explicitly. Updated patches: