I'm not using DE, and I have 2 records for text/plain grep "text/plain" /usr/share//applications/defaults.list text/plain=gedit.desktop grep "text/plain" /usr/share//applications/mimeinfo.cache text/plain=kde4-kate.desktop; xdg-mime from trunk return 2 .desktop entries. ./xdg-mime query default text/plain gedit.desktop kde4-kate.desktop
This issue was blocking for me on Fedora 20. I had the entry 'application/pdf=evince.desktop' in both defaults.list and mimeinfo.cache, and running xdg-mime query default application/pdf returned evince.desktop evince.desktop The line above would not be parsed properly by xdg-open and the pdf files were opened by the fallback browser. An attached patch fixes the problem. Please consider it.
Created attachment 104545 [details] [review] Patch to fix the multiple desktop files report by xdg-mime
Thanks! http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=e04f8065335e391f47b04513d395e02a7f13d56e
Awesome ! Thanks a lot for applying. Cheers Lionel
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.