Package: mime-support Version: 3.62 Severity: important According to the mailcap.order(5) man page,
"The order of entries in the /etc/mailcap file can be altered by editing the /etc/mailcap.order file. Each line of that file specifies a package and an optional mime type." This only holds true if the package adds a file to /usr/lib/mime/packages. Many /etc/mailcap entries, however, are obtained by parsing files in /usr/share/applications; in that case the "package" name is taken to be the name of the .desktop file, minus the .desktop suffix. In some cases this is different from the actual package name. Moreover, the name can change in a package's history, resulting in surprising behaviour changes across release upgrades if /etc/mailcap.order isn't updated to match. The behaviour is old but became noticeable for me after upgrading from stretch to buster. evince.desktop was renamed to org.gnome.Evince.desktop, causing gimp to become the preferred PDF viewer. As I tried to correct this by adding evince:application/pdf to the mailcap.order file I got a warning "Warning: package evince listed in /etc/mailcap.order does not have mailcap entries." and no reordering of entries.