[Sugar-devel] Java & Scratch on XO

Tomeu Vizoso tomeu
Mon Dec 1 08:05:12 EST 2008


[reposting to devel at l.o and adding sugar-devel at s.o to cc]

On Mon, Dec 1, 2008 at 1:44 PM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
> On Tue, Nov 25, 2008 at 5:01 PM,  <pgf at laptop.org> wrote:
>> i'm forwarding this note from john maloney (scratch maintainer) to devel.
>>
>> this certainly sounds like a mime types issue, but i'm not sure
>> where or how we'd augment the canonical list.
>
> Paul is right, Sugar is not being able to recognize those as being
> scratch files. You can see how etoys is doing this by extending the
> mime types database:
>
> http://wiki.laptop.org/go/Activity_bundles#Bundle_Structure
> http://dev.laptop.org/git?p=projects/etoys;a=blob;f=etoys.xml
>
> Regards,
>
> Tomeu
>
>> john wrote:
>>  > Hi, Paul, Cynthia, and Claudia.
>>  >
>>  > I got a question from a professor at U. of Wisconsin about how to work
>>  > with Scratch projects downloaded from the Scratch website (see below).
>>  >
>>  > I verified that the problem is that the .sb file gets renamed to be
>>  > something in /tmp ending in .bin. I think this happens when you put
>>  > the .sb file in the clipboard. In any case, when you drag the file
>>  > icon onto Scratch, that is the file name that is reported.
>>  >
>>  > So my question is: is there a way to tell the browser the files ending
>>  > in .sb are Scratch project files so that it doesn't rename them? Is it
>>  > something like registering a MIME type?
>>  >
>>  > Does anyone else have any suggestions for making it easier to get
>>  > downloaded Scratch projects to open in Scratch?
>>  >
>>  >      -- John
>>  >
>>  >
>>  >
>>  > -----
>>  > My understanding of the problem (now that I'm running Scratch 1.3
>>  > everywhere) is that the XO does not properly name the files it
>>  > downloads from the scratch site (i.e., they don't have .sb
>>  > extensions), and Scratch refuses to recognize files without that
>>  > extension. If I use the Linux terminal program to change the name (or
>>  > download them onto a USB from another machine) I can get the Scratch
>>  > to open the files. Does this make sense? It is a total pain in the
>>  > neck though, because I can't figure out a solution that does not
>>  > involve a USB: the only way I can find the Scratch program file from
>>  > the Linux terminal is if I use the Journal to copy the file to the USB
>>  > (I can't figure out where it lives in the Journal world).
>>  > -----
>>
>> =---------------------
>>  paul fox, pgf at laptop.org
>>  give one laptop, get one laptop --- http://www.amazon.com/xo
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>>
>




More information about the Sugar-devel mailing list