<div dir="ltr">The pr <a href="https://github.com/sugarlabs/sugar/pull/367">https://github.com/sugarlabs/sugar/pull/367</a><div>was updated in <a href="https://github.com/sugarlabs/sugar/pull/368">https://github.com/sugarlabs/sugar/pull/368</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 5, 2014 at 2:42 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</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">I am trying to fix some bugs in the Journal, when work in the Documents folder<div>or external devices, and need add a method to get all he possible extensions for a mime type.</div>
<div><br></div><div>Right now, the Journal check if a object have a extension, and if is not, add the "primary extension"</div>
<div>for the mime type. This is a first problem, because many mime types have more than one </div><div>possible extension. In these cases, if the extension don't is the same than the selected extension,</div><div>the primary extension is added.</div>
<div><br></div><div>To test this error, you can try download a .py file or a .jpg file, and copy it to the Documents folder.</div><div>When you do 'ls' in the terminal will see the files are copied as .py.wsgi and .jpg.jpeg</div>
<div><br></div><div>This fix try to solve this particular case, files with valid extensions. Then check if the extension</div><div>is one of the valid extensions before add the extension.</div><div><br></div><div>The pr involved is <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/140" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/140</a></div>
<div>and is needed by <a href="https://github.com/sugarlabs/sugar/pull/367" target="_blank">https://github.com/sugarlabs/sugar/pull/367</a></div><div><div><br></div><div>The sugar-toolkit-gtk3 add a new method, and we need the vote from two developers [1] </div>
<div>to allow break the API freeze.</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div><div><br></div><div>
[1] <a href="http://wiki.sugarlabs.org/go/Development_Team/Release#Feature_freeze" target="_blank">http://wiki.sugarlabs.org/go/Development_Team/Release#Feature_freeze</a></div>
</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>