Ubuntu Forums Archive Viewer

get file mime / meta info using pygobject / GIO

Archived thread 1001738 from Programming Talk. Markdown source: Programming_Talk/thread_1001738_get_file_mime__meta_info_using_pygobject__GIO.md

Original URL About this archive
#1

gnome-vfs can do this: https://help.ubuntu.com/community/PythonRecipes/MIMETypes GIO should allow the same thing, but docs for python bindings in pygobject doesn't exist for that part. Can anyone knows how to get file mimetype, and possibly meta information (prefered apps, other things)?