用户可借助该项目获取常见 MIME 类型的核心数据库及相关工具,用于识别文件类型。包含 MIME 类型、文件扩展名和图标名称数据,提供 update-mime-database 命令扩展数据库,被 GLib、GNOME 等众多桌面环境使用。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
Shared MIME Info
The shared-mime-info package contains:
- The core database of common MIME types, their file extensions and icon names.
- The update-mime-database command, used to extend the DB and install a new MIME data.
- The freedesktop.org shared MIME database spec.
It is used by GLib, GNOME, KDE, XFCE and many others.
For more information about the database see the Shared MIME Info Specification here.
Installation
To install do:
$ ./configure --prefix=/usr --sysconfdir=/etc
$ make
$ sudo make install
If you are building from git then you will have to run ./autogen.sh first.
It requires glib to be installed for building the update command. Additionally, it uses gettext and itstool for translations. This database is translated at Transifex.
Please report bugs here: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues
Getting involved in freedesktop.org projects guide: https://www.freedesktop.org/wiki/GettingInvolved/
Useful reference links
IANA: https://www.iana.org/assignments/media-types/
KDE's old mime-types: http://websvn.kde.org/branches/KDE/3.5/kdelibs/mimetypes/
UNIX file tool and libmagic https://github.com/file/file