Journal integration for Scratch
Tomeu Vizoso
tomeu at sugarlabs.org
Mon Jan 12 12:11:48 EST 2009
On Mon, Jan 12, 2009 at 18:07, Bert Freudenberg <bert at freudenbergs.de> wrote:
>
> On 12.01.2009, at 17:55, Tomeu Vizoso wrote:
>
>> On Mon, Jan 12, 2009 at 17:38, Bert Freudenberg <bert at freudenbergs.de>
>> wrote:
>>>
>>> On 12.01.2009, at 17:03, Tomeu Vizoso wrote:
>>>
>>>> On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg <bert at freudenbergs.de>
>>>> wrote:
>>>>>
>>>>> On 12.01.2009, at 10:16, Tomeu Vizoso wrote:
>>>>>
>>>>>> Ok, what you just did will tell Sugar that Scratch is able to open
>>>>>> files with the mime type 'application/x-scratch-project'. But this
>>>>>> will not affect the icon of those files.
>>>>>
>>>>> Is there a way to assign icons for files other than by saving it in an
>>>>> activity?
>>>>
>>>> Currently, only by changing the mime-type.
>>>
>>>
>>> Maybe I misunderstood then. How is the icon for a mime type such as
>>> application/x-scratch-project found then?
>>
>> We are using the xdg mime database, the mimetypes.xml file contained
>> in activities is added to that database. So that's the mechanism
>> through which activities can associate icons to mime types.
>
>
> So what would the Scratch activity have to do so files put into the Journal
> (maybe by downloading) are displayed using a Scratch icon rather than the
> generic document icon?
Shipping a mimetypes.xml file inside the bundle as explained here:
http://wiki.laptop.org/go/Activity_bundles#Bundle_Structure
Sugar will call update-mime-database and will merge that file into the
xdg mime database.
I think that John is already trying this.
Regards,
Tomeu
More information about the Devel
mailing list