[Sugar-devel] mime type error in sugar

Gonzalo Odiard godiard at sugarlabs.org
Sun Jan 19 11:04:47 EST 2014


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 <dwnarvaez at 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 <godiard at 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 at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
>
> --
> Daniel Narvaez
>



-- 
Gonzalo Odiard

SugarLabs - Learning Software for children
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140119/acc2931b/attachment.html>


More information about the Sugar-devel mailing list