Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desktop-files-utils: add setupHook to remove mimeinfo.cache #55465

Merged
merged 1 commit into from Feb 9, 2019

Conversation

worldofpeace
Copy link
Contributor

@worldofpeace worldofpeace commented Feb 9, 2019

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.

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-roller and the mimeinfo.cache doesn't exist anymore.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

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.
Copy link
Contributor

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@worldofpeace
Copy link
Contributor Author

Let's build one more just to test.
Should be fine though.

@GrahamcOfBorg build font-manager

@worldofpeace worldofpeace merged commit 69be72a into NixOS:master Feb 9, 2019
@worldofpeace worldofpeace deleted the desktop-file-utils-hook branch February 9, 2019 01:29
@danbst
Copy link
Contributor

danbst commented Dec 20, 2019

Related -- a hacky way to install mimeinfo.cache profile-wide #13134 (comment)

Still don't know how to solve the problem for nix-env and various caches correctly.

@worldofpeace
Copy link
Contributor Author

@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...
(then again nix-env is a special tool IMHO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collision of mimeinfo.cache
4 participants