<div dir="ltr">I don't know if this was needed by historical reasons,<div>maybe the Gio functionality was not available.</div><div><br></div>mime.get_for_file do some magic to recognize text files.<div><br></div><div>Probably mime.get_for_file could call Gio instead of the SugarExt equivalent.</div>
<div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 18, 2014 at 6:49 AM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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).<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 16 January 2014 20:42, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I have filled #4715 [1] with information about a problem with the mime database in sugar. <div>
A workaround is available, but I would like to know what other think</div>
<div>about using Gio to identify the mime types instead of our own </div>
<div>SugarExt.mime_get_mime_type_for_file<br></div><div>Regards,</div><span><font color="#888888"><div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div><div>
<br></div><div>[1] <a href="http://bugs.sugarlabs.org/ticket/4715" target="_blank">http://bugs.sugarlabs.org/ticket/4715</a></div>
</div>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div>