I am trying to modify my mimeapps.list using home-manager, so I am wanting to find a list of .desktop files on my system. I have seen some people say to look in /run/current-system/sw/share/applications. On my system, this directory only has:
I have also seen others mention $XDG_DATA_DIRS. I have looked at every directory defined by that variable, and none of them contain the desktop entries for the applicatoins I have installed.
I have found the following directory /nix/store/hash-home-manager-path/share/applications that seems to contain all of my .desktop files, but I cannot figure out which directory is linked to it. It seems that there isn’t any.
Isn’t there a symlink to all of my .desktop files?
Generally if you want to put stuff in XDG_DATA_DIRS,you should just copy the dirextories in $out/share. In this case .desktop files should be copied to $out/share/applications.Remember to mkdir -p $out/share/applications beforehand
I think you misunderstood. I am not wanting to put anything into XDG_DATA_DIRS or anywhere else. I am not creating .desktop files. I am trying to find the .desktop files that were created by the applications I have installed.