Python: module rox.mime

rox.mime | index

`Applications can install information about MIME types by storing an
XML file as <MIME>/packages/<application>.xml and running the
update-mime-database command, which is provided by the freedesktop.org
shared mime database package.
See http://www.freedesktop.org/standards/shared-mime-info.html for
information about the format of these files.`

Functions
`` |  | install_mime_info(application, package_file=None) `Copy 'package_file' as ~/.mime/packages/<application>.xml. If package_file is None, install <app_dir>/<application>.xml. If already installed, does nothing. May overwrite an existing file with the same name (if the contents are different)`