|  |  | get_type(path, follow=1, name_pri=100)Returns type of file indicated by path.path     - pathname to check (need not exist)
 follow   - when reading file, follow symbolic links
 name_pri - Priority to do name matches.  100=override magic
 get_type_by_contents(path, max_pri=100, min_pri=0)Returns type of file by its contents, or None if not known
 get_type_by_name(path)Returns type of file by its name, or None if not known
 get_type_handler(mime_type, handler_type='MIME-types')Lookup the ROX-defined run action for a given mime type.mime_type is an object returned by lookup().
 handler_type is a config directory leaf (e.g.'MIME-types').
 image_for_type(type, size=48, flags=0)Search XDG_CONFIG or icon theme for a suitable icon. Returns apixbuf, or None.
 install_mime_info(application, package_file=None)Copy 'package_file' as ~/.local/share/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)
 lookup(media, subtype=None)Get the MIMEtype object for this type, creating a new one if needed.
 |