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. Probably mime.get_for_file could call Gio instead of the SugarExt equivalent. Gonzalo On Sat, Jan 18, 2014 at 6:49 AM, Daniel Narvaez <dwnarv...@gmail.com> wrote: > Why we need that method at all? Without knowing the history of this code, > it seems like we should Gio, both if the file exists and if it doesn't (if > I remember correctly guess if for when the file doesn't exist). > > > On 16 January 2014 20:42, Gonzalo Odiard <godi...@sugarlabs.org> wrote: > >> I have filled #4715 [1] with information about a problem with the mime >> database in sugar. >> A workaround is available, but I would like to know what other think >> about using Gio to identify the mime types instead of our own >> SugarExt.mime_get_mime_type_for_file >> Regards, >> -- >> Gonzalo Odiard >> >> SugarLabs - Learning Software for children >> >> [1] http://bugs.sugarlabs.org/ticket/4715 >> >> _______________________________________________ >> Sugar-devel mailing list >> Sugar-devel@lists.sugarlabs.org >> http://lists.sugarlabs.org/listinfo/sugar-devel >> >> > > > -- > Daniel Narvaez > -- Gonzalo Odiard SugarLabs - Learning Software for children
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel