desktop-files-utils: add setupHook to remove mimeinfo.cache#55465
desktop-files-utils: add setupHook to remove mimeinfo.cache#55465worldofpeace merged 1 commit intoNixOS:masterfrom
Conversation
Post-Installation scripts are running `update-desktop-database -q` creating these files which obviously results in a lot of collisions. Much better solution than eventually noticing their existence and removing them in postInstall.
|
Let's build one more just to test. @GrahamcOfBorg build font-manager |
|
Related -- a hacky way to install mimeinfo.cache profile-wide #13134 (comment) Still don't know how to solve the problem for |
|
@danbst This is one of the things that confuse me, because that's like what's done already but system wide. We use environment.extraSetup, which would work correctly for https://nixos.org/nixos/options.html#users.users.%3Cname%3F%3E.packages. Getting things to work well for nix-env continues to be difficult. Is there a way to specify extra commands to run for the nix-env environment? I already know home-manager works better for this https://github.com/rycee/home-manager#usage... |
Post-Installation scripts are running
update-desktop-database -qcreating these files which obviously results in a lot of collisions.
Much better solution than eventually noticing their existence and
removing them in
postInstall.Motivation for this change
Probably been mentioned more than a few times that we should just
go ahead and do this.
Closes #48295
Things done
Built
file-rollerand themimeinfo.cachedoesn't exist anymore.sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)