6

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?

antonio
  • 1,381
  • 3
  • 16
  • 37

1 Answers1

0

A kind of solution, is copying /usr/share/applications/mimeinfo.cache, and change the main section name from [MIME Cache] to [Default Applications].

Another tip is that both files can be commented with # (is the same parser that process *.desktop files).

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Sefer
  • 29
  • 3