CmdID

CmdID / Commands

xdg-mime

Query and manage MIME types according to the XDG standard. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Display the MIME type of a file

xdg-mime query filetype path/to/fileIdentify

Display the default application for opening PNGs

xdg-mime query default image/pngIdentify

Display the default application for opening a specific file

xdg-mime query default $(xdg-mime query filetype path/to/file)Identify

Set imv as the default application for opening PNG and JPEG images

xdg-mime default imv.desktop image/png image/jpegIdentify