Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d2ab091dd308
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fb0e0dcbc65a
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 8, 2018

  1. xdg/mime.nix: ensure $out/share/mime/packages exists

    For update-mime-database to work, you must have to have some mime
    packages installed. In some DEs like XFCE this is not guaranteed to
    happen. In that case just skip the update-mime-database call.
    
    Fixes #46162
    matthewbauer committed Sep 8, 2018

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    fb0e0dc View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 nixos/modules/config/xdg/mime.nix
2 changes: 1 addition & 1 deletion nixos/modules/config/xdg/mime.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ with lib;
];

environment.extraSetup = ''
if [ -w $out/share/mime ]; then
if [ -w $out/share/mime ] && [ -d $out/share/mime/packages ]; then
XDG_DATA_DIRS=$out/share ${pkgs.shared-mime-info}/bin/update-mime-database -V $out/share/mime > /dev/null
fi