I find it really irritating that some applications (e.g. pdfshuffler and calibre) end up a higher priority in /usr/share/applications/mimeinfo.cache
than my desired application for PDFs (okular).
I manually edit this file from time to time to remove undesirable applications, but it sometimes seems to reset, and my undesirable applications end up being at the front of the list and thus used to open PDFs.
I suspect this happens when packages get updated, but I'm not sure. Is this the case?
Otherwise, when is this file getting updated?
And can I protect existing settings so as to prevent applications from stealing priority?