Documentation

xdg-mime – query information about file type

xdg-mime is a command-line tool used to query and manage MIME type associations on Linux and other Unix-like systems that follow the freedesktop.org standards. It allows users and applications to determine the MIME type of a file and to configure the default application used to open specific file types.

The utility is commonly used within desktop environments to ensure that files open with the correct applications. It supports querying file types, setting default handlers for MIME types, and inspecting the applications associated with particular formats.

This is free and open source software.

Key Features

  • Queries the MIME type of files.
  • Determines the default application associated with a MIME type.
  • Sets the default application used to open specific file types.
  • Integrates with freedesktop.org MIME and desktop entry specifications.
  • Supports scripting and automation for managing file associations.
  • Works across multiple desktop environments that follow XDG standards.

Website: gitlab.freedesktop.org/xdg/xdg-utils
Support:
Developer: freedesktop.org
License: MIT License

xdg-mine man page


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments