1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00

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
This commit is contained in:
Tobias Happ 2019-09-20 20:00:25 +02:00 committed by Robert Helgesson
parent 51581b7e43
commit 3f45630180
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 ";");