I am trying to find the mime-type of a file. I used either 'file --mime-type' or 'xdg-mime', but get different answers? I am not sure to understand?
$ file --mime-type -b gePlugin.kmz application/zip $ xdg-mime query filetype gePlugin.kmz application/vnd.google-earth.kmz
Why do I have different answers? Which one should I rely on?
Why is there a difference?
UPDATE (by cipricus):
Example for iso file:
file --mime-type -b MY_ISO.iso gives
application/x-iso9660-image, which is not useful with a desktop file for context menu actions.
xdg-mime query filetype MY_ISO.iso gives
model/x.stl-binary, which works with te same desktop for context menu actions.