logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Manage MIME Types - Control File Associations with xdg-mime | Online Free DevTools by Hexmos

Manage and query MIME types with xdg-mime. Control file associations and default applications for various file types easily. Free online tool, no registration required.

xdg-mime

Query and manage MIME types according to the XDG standard. More information: https://portland.freedesktop.org/doc/xdg-mime.html.

  • Display the MIME type of a file:

xdg-mime query filetype {{path/to/file}}

  • Display the default application for opening PNGs:

xdg-mime query default {{image/png}}

  • Display the default application for opening a specific file:

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

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

xdg-mime default {{imv.desktop}} {{image/png}} {{image/jpeg}}

See Also