<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I also found that xdg-open does not take mimeinfo.cache files into account, so applications that use xdg-open sometimes fail to properly open programs associated with the url unless association is in mimeapps.list. </div></div></blockquote><div><br></div><div>If the standard is being followed, mimeapps.list is what xdg-open should be reading from since it determines which application is the default opener of each MIME type. mimeinfo.cache is only used as a shortcut to find all applications associated with a MIME type (without re-scanning every .desktop file); it should not be relied on to determine default applications.</div><div><br></div><div>At least on Arch Linux, mimeinfo.cache is automatically rebuilt whenever desktop applications are added/removed. I would expect that other distributions work similarly.</div></div></div></div>