On Mon, Dec 1, 2008 at 3:16 PM, John Maloney <[EMAIL PROTECTED]> wrote:
> Hi, Tomeu.
>
> Thanks for your reply. It's great that there is a way to handle this!
>
> I took a quick look at the EToys .xo bundle and did not see a
> mimetypes.xml file. However, I did notice that EToys lists a lot of
> mime types in it's activity.info. What I don't see is how the system
> would know what file extension to associate with a type like
> "application/x-squeak-project". Is that what the mimetypes.xml is for?
> Do you know of any other activity that uses a mimetypes.xml file that
> would be a good model for Scratch?

True, have talked with Bert and he said that the etoys.xml file they
have in the source repository is for the rpm, not for the .xo. So
sorry for the misleading pointer.

The idea is that your scratch bundle would have a file named
mimetypes.xml in the activity dir (so next to the activity.info file,
the icon, etc) and the contents would be analogous to those in
etoys.xml. As you can see, that file relates extensions to mime types.

Unfortunately, cannot find now an activity that currently uses it, but
ping me again if you have trouble putting that to work and I will look
harder or do a small experiment here.

Good luck,

Tomeu

> On Dec 1, 2008, at 7:44 AM, Tomeu Vizoso wrote:
>
>> On Tue, Nov 25, 2008 at 5:01 PM,  <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED]
>>> give one laptop, get one laptop --- http://www.amazon.com/xo
>>> _______________________________________________
>>> Devel mailing list
>>> Devel@lists.laptop.org
>>> http://lists.laptop.org/listinfo/devel
>>>
>
> _______________________________________________
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

Reply via email to