In a previous question I enquired about manually setting default applications for different mime types.
Other than use tools one among several tools,
it boiled down to add an entry to ~/.config/mimeapps.list, which overrides system wide settings cached in /usr/share/applications/mimeinfo.cache. YMMV depending on your system XDG Base Directory
settings and compliance.
Our distros usually sport a large mimeapps.list (more than 50 lines in my case). While there are (GUI) tools to add/modify single entries, I didn't find any standard procedure and/or tool to automatically generate the whole mimeapps.list database.
If I delete mimeapps.list and install new applications, it is not rebuilt.
So,
what process generates mimeapps.list?