[Sugar-devel] mime type error in sugar

Daniel Narvaez dwnarvaez at gmail.com
Sun Jan 19 11:47:58 EST 2014


On 19 January 2014 17:04, Gonzalo Odiard <godiard at sugarlabs.org> wrote:

> I don't know if this was needed by historical reasons,
> maybe the Gio functionality was not available.
>
> mime.get_for_file do some magic to recognize text files.
>

Gio seems to handle that just fine (tested with Gio.content_guess_type).


> Probably mime.get_for_file could call Gio instead of the SugarExt
> equivalent.
>

IMO we should deprecate mime.get_for_file and replace it with Gio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140119/e24b8934/attachment.html>


More information about the Sugar-devel mailing list