From 3f4563018010e2ad180d99d9cd876187e2905cee Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Fri, 20 Sep 2019 20:00:25 +0200 Subject: [PATCH] xdg-mime-apps: add legacy `mimeapps.list` path Although `.local/share/applications/mimeapps.list` is deprecated, this file is still being read by some applications. To ensure compatibility duplicate the file as recommended in https://wiki.archlinux.org/index.php/XDG_MIME_Applications#mimeapps.list --- modules/misc/xdg-mime-apps.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/misc/xdg-mime-apps.nix b/modules/misc/xdg-mime-apps.nix index ac675d2d..979c7ea4 100644 --- a/modules/misc/xdg-mime-apps.nix +++ b/modules/misc/xdg-mime-apps.nix @@ -75,6 +75,10 @@ in }; config = mkIf cfg.enable { + # Deprecated but still used by some applications. + home.file.".local/share/applications/mimeapps.list".source = + config.xdg.configFile."mimeapps.list".source; + xdg.configFile."mimeapps.list".text = let joinValues = mapAttrs (n: concatStringsSep ";");