xdg-mime doesn't check defaults.list correctly
Submitted by Frederic Crozat Crozat
Assigned to Portland Bugs
version 1.0.1 of xdg-mime doesn't check defaults.list correctly :
it searchs for the first .desktop keyfile for a particular mimetype, without checking if this .desktop is available on the system.
The attached patch fixes this issue.
It isn't perfect, since xdg-mime doesn't checks if .desktop if valid (ie if Exec= is pointing to a existing executable file) or if it can be used (ie not in Hidden=true) but it is better.