[Sugar-devel] mime types when moving files from journal to usb

Erik Blankinship erikb at mediamods.com
Fri Feb 11 15:08:20 EST 2011


Thanks Gonzalo!  I think that solves my problem.

I noticed there were two svg icons in the physics activity directory:
 application-x-physics-project.svg and activity-physics.svg.

Is there now a way to assign an icon to the files generated/used by my
activity based on their extension type?

On Fri, Feb 11, 2011 at 2:33 PM, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> You need add a mimetypes.xml file to your activity. look at Physics
> activity
>
> Gonzalo
>
> On Fri, Feb 11, 2011 at 4:24 PM, Erik Blankinship <erikb at mediamods.com>wrote:
>
>> My video game runs in both gnome and sugar.  I want kids to be able to
>> move saved games back and forth between these platforms with ease.
>>
>> I have created a mime-type for saved files in my video game:
>> application/x-my-cool-game.  Datastore entries' metadata are saved with this
>> mime-type.
>>
>> When a video game saved file is dragged to a usb stick, the mime-type is
>> thrown away (replaced with application/octet-stream), while dragging journal
>> entries to usb with mime-type application/x-tar (1) keep their mime type (2)
>> are given a nice .gtar extension to make their life easier in the world
>> outside of sugar.
>>
>> Can I give the same benefits (keep mime-type, get an extension) to files
>> copied from the journal to a usb stick using my own custom mime-type?
>>
>> The ugly alternative, as I see it, is to make all of my journal entries'
>> titles' metadata have extensions added to them at creation -- this will make
>> for a messy looking journal.  But at least the files will have the right
>> extension  for their life in gnome.
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110211/eaf965bd/attachment-0001.html>


More information about the Sugar-devel mailing list