Re: Journal integration for Scratch

2009-01-15 Thread Philipp Kocher
You are right. It doesn't work like that, but the filename is quite important to me. It is shown in the Scratch GUI and it is an important marker to find the project, when save and not save as is used. I wouldn't just take the object_id. What do you think John? There is a bug in Scratch version

Re: Journal integration for Scratch

2009-01-15 Thread John Maloney
Hi, Phillip. Re: There is a bug in Scratch version 12. The symbolic link of the Project directory doesn't get created (Open Projects shows Scratch.activity folder instead). I checked the scripts (scratch-activity and scratch-wrapper) but couldn't find where the link should get created. In

Re: Journal integration for Scratch

2009-01-15 Thread Bert Freudenberg
On 15.01.2009, at 13:55, John Maloney wrote: Hi, Phillip. Re: There is a bug in Scratch version 12. The symbolic link of the Project directory doesn't get created (Open Projects shows Scratch.activity folder instead). I checked the scripts (scratch-activity and scratch-wrapper) but

Re: Journal integration for Scratch

2009-01-15 Thread John Maloney
Ahh, that would explain it! Maybe we need a couple of lines of shell script to check for the link and create it if it isn't there. -- John On Jan 15, 2009, at 7:56 AM, Bert Freudenberg wrote: On 15.01.2009, at 13:55, John Maloney wrote: Hi, Phillip. Re: There is a bug in Scratch

Re: Journal integration for Scratch

2009-01-14 Thread Bert Freudenberg
The script looks good, except for the name mangling magic (which is a bit hard to understand because of mis-indentations). This wouldn't even work with your XO's language set to non-English (which the majority of XOs use). I would simply name the file $object_id.sb. - Bert - On

Re: Journal integration for Scratch

2009-01-13 Thread Bert Freudenberg
On 13.01.2009, at 06:55, Philipp Kocher wrote: Thanks Tomeu to lead me to the /home/olpc/.local directory. However, the mimetypes.xml is not necessary to get the icon in the journal. I just had to copy the scratch icon file in the activity directory to application-x-scratch-project.svg

Re: Journal integration for Scratch

2009-01-13 Thread Tomeu Vizoso
On Tue, Jan 13, 2009 at 06:55, Philipp Kocher philipp.koc...@gmx.net wrote: Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 18:50, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 18:11, Tomeu Vizoso wrote: So what would the Scratch activity have to do so files put into the

Re: Journal integration for Scratch

2009-01-13 Thread John Maloney
Hi, Phillip. Thanks for all your hard work in tracking this down. I had looked at several other packages, including EToys, and couldn't figure out from them how to do this. I will make these changes to the next XO Scratch bundle. Is that all I need to do? What about the mime types XML file

Re: Journal integration for Scratch

2009-01-13 Thread Bert Freudenberg
On 13.01.2009, at 13:30, John Maloney wrote: Hi, Phillip. Thanks for all your hard work in tracking this down. I had looked at several other packages, including EToys, and couldn't figure out from them how to do this. I will make these changes to the next XO Scratch bundle. Is that

Re: [Sugar-devel] Journal integration for Scratch

2009-01-13 Thread Eben Eliason
On Tue, Jan 13, 2009 at 3:54 AM, Bert Freudenberg b...@freudenbergs.de wrote: On 13.01.2009, at 06:55, Philipp Kocher wrote: Thanks Tomeu to lead me to the /home/olpc/.local directory. However, the mimetypes.xml is not necessary to get the icon in the journal. I just had to copy the scratch

Re: [Sugar-devel] Journal integration for Scratch

2009-01-13 Thread Bert Freudenberg
On 13.01.2009, at 17:22, Eben Eliason wrote: /usr/share/icons/sugar/scalable/mimetypes/application-x-squake- project.svg. Interesting ... thanks for the archaeology :) Eben: see, I did remember correctly there was an icon for the document independent of the activity ;) Indeed.

Re: [Sugar-devel] Journal integration for Scratch

2009-01-13 Thread Eben Eliason
On Tue, Jan 13, 2009 at 12:49 PM, Bert Freudenberg b...@freudenbergs.de wrote: On 13.01.2009, at 17:22, Eben Eliason wrote: /usr/share/icons/sugar/scalable/mimetypes/application-x-squake- project.svg. Interesting ... thanks for the archaeology :) Eben: see, I did remember correctly there

Re: [Sugar-devel] Journal integration for Scratch

2009-01-13 Thread Bert Freudenberg
On 13.01.2009, at 19:14, Eben Eliason wrote: On Tue, Jan 13, 2009 at 12:49 PM, Bert Freudenberg b...@freudenbergs.de wrote: On 13.01.2009, at 17:22, Eben Eliason wrote: /usr/share/icons/sugar/scalable/mimetypes/application-x-squake- project.svg. Interesting ... thanks for the

Re: Journal integration for Scratch

2009-01-13 Thread Philipp Kocher
Hi John Yes, we need the mimetypes.xml file as well (thanks Tomeu I forgot the USB flash drive use case). I have tested the attached mimetypes.xml. It is working fine. Put it in the activity directory. Furthermore we have to change the scratch-activity script, so the parameter with the

Re: Journal integration for Scratch

2009-01-12 Thread Philipp Kocher
Tomeu Vizoso wrote: On Thu, Jan 8, 2009 at 04:50, Philipp Kocher philipp.koc...@gmx.net wrote: Bert Freudenberg wrote: On 18.12.2008, at 08:08, Philipp Kocher wrote: One more thing, the scratch icon is not shown in the journal for files with the scratch mimetype. I think the file

Re: Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
[adding sugar-devel to the cc list] On Mon, Jan 12, 2009 at 09:42, Philipp Kocher philipp.koc...@gmx.net wrote: Tomeu Vizoso wrote: On Thu, Jan 8, 2009 at 04:50, Philipp Kocher philipp.koc...@gmx.net wrote: Bert Freudenberg wrote: On 18.12.2008, at 08:08, Philipp Kocher wrote: One

Re: Journal integration for Scratch

2009-01-12 Thread Bert Freudenberg
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

Re: Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg b...@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

Re: [Sugar-devel] Journal integration for Scratch

2009-01-12 Thread Eben Eliason
This is something I've briefly discussed with Marco in the past. It seems a natural extension of the idea of objects as first class citizens of Sugar to allow those objects to have custom icons and identities. Right now, we have no such support. The most natural way (at least for me, as a Mac

Re: Journal integration for Scratch

2009-01-12 Thread Bert Freudenberg
On 12.01.2009, at 17:03, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg b...@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

Re: Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
On Mon, Jan 12, 2009 at 17:38, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:03, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 10:16, Tomeu Vizoso wrote: Ok, what you just did will tell Sugar that

Re: Journal integration for Scratch

2009-01-12 Thread Bert Freudenberg
On 12.01.2009, at 17:55, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 17:38, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:03, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 10:16, Tomeu Vizoso

Re: Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
On Mon, Jan 12, 2009 at 18:07, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:55, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 17:38, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:03, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 16:52, Bert Freudenberg

Re: [Sugar-devel] Journal integration for Scratch

2009-01-12 Thread Eben Eliason
On Mon, Jan 12, 2009 at 12:11 PM, Tomeu Vizoso to...@sugarlabs.org wrote: On Mon, Jan 12, 2009 at 18:07, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:55, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 17:38, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at

Re: [Sugar-devel] Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
On Mon, Jan 12, 2009 at 18:16, Eben Eliason e...@laptop.org wrote: On Mon, Jan 12, 2009 at 12:11 PM, Tomeu Vizoso to...@sugarlabs.org wrote: On Mon, Jan 12, 2009 at 18:07, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 17:55, Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 17:38,

Re: Journal integration for Scratch

2009-01-12 Thread Bert Freudenberg
On 12.01.2009, at 18:11, Tomeu Vizoso wrote: 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:

Re: Journal integration for Scratch

2009-01-12 Thread Tomeu Vizoso
On Mon, Jan 12, 2009 at 18:50, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 18:11, Tomeu Vizoso wrote: 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

Re: [Sugar-devel] Journal integration for Scratch

2009-01-12 Thread Eben Eliason
On Mon, Jan 12, 2009 at 2:23 PM, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 19:30, Tomeu Vizoso wrote: And I just checked and it does work with Etoys projects. When downloading one it indeed gets an etoys icon (although at a smaller size - why is that?) No idea, though I

Re: Journal integration for Scratch

2009-01-12 Thread Philipp Kocher
Tomeu Vizoso wrote: On Mon, Jan 12, 2009 at 18:50, Bert Freudenberg b...@freudenbergs.de wrote: On 12.01.2009, at 18:11, Tomeu Vizoso wrote: 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

Re: Journal integration for Scratch

2009-01-08 Thread Tomeu Vizoso
On Thu, Jan 8, 2009 at 04:50, Philipp Kocher philipp.koc...@gmx.net wrote: Bert Freudenberg wrote: On 18.12.2008, at 08:08, Philipp Kocher wrote: One more thing, the scratch icon is not shown in the journal for files with the scratch mimetype. I think the file

Re: Journal integration for Scratch

2009-01-07 Thread Philipp Kocher
Bert Freudenberg wrote: On 18.12.2008, at 08:08, Philipp Kocher wrote: One more thing, the scratch icon is not shown in the journal for files with the scratch mimetype. I think the file /usr/share/sugar/data/mime.defaults has to be adapted to include the scratch-mimetype. It just has to

Re: Journal integration for Scratch

2008-12-25 Thread Philipp Kocher
just XO problems and you have to maintain other platforms as well. Thanks for your great support for Scratch on the XO. Thanks, Philipp Pepyride School Cambodia John Maloney wrote: Hi, Phillip. Re: Do you plan a journal integration for scratch? Probably not in the near future. There has

Re: Journal integration for Scratch

2008-12-18 Thread Bert Freudenberg
On 18.12.2008, at 08:08, Philipp Kocher wrote: One more thing, the scratch icon is not shown in the journal for files with the scratch mimetype. I think the file /usr/share/sugar/data/mime.defaults has to be adapted to include the scratch-mimetype. It just has to be listed in the activity

Re: Journal integration for Scratch

2008-12-18 Thread John Maloney
Hi, Phillip. Re: Do you plan a journal integration for scratch? Probably not in the near future. There has been talk about making an API for the Journal that looks more like a file system to application programs. That might be the easiest way to integrate the Journal into Scratch

Re: Journal integration for Scratch

2008-12-18 Thread Eben Eliason
On Thu, Dec 18, 2008 at 9:57 AM, John Maloney jmalo...@media.mit.edu wrote: Hi, Phillip. Re: Do you plan a journal integration for scratch? Probably not in the near future. There has been talk about making an API for the Journal that looks more like a file system to application programs

Re: Journal integration for Scratch

2008-12-18 Thread Bert Freudenberg
On 18.12.2008, at 17:11, Eben Eliason wrote: In fact, the Journal itself supports thumbnails and a description field, so a similar experience could be offered there, in a place that's familiar to those using Sugar. In theory, yes. In practice, you do not get a preview for downloaded

Re: Journal integration for Scratch

2008-12-18 Thread Eben Eliason
On Thu, Dec 18, 2008 at 12:05 PM, Bert Freudenberg b...@freudenbergs.de wrote: On 18.12.2008, at 17:11, Eben Eliason wrote: In fact, the Journal itself supports thumbnails and a description field, so a similar experience could be offered there, in a place that's familiar to those using

Re: Journal integration for Scratch

2008-12-18 Thread Eben Eliason
Thanks John! My previous comments weren't meant as an attack against you or Scratch, of course. We know as well as anyone about resource constraints! I just want to keep everyone honest, and make sure that the broader goals for Sugar and the Journal don't get lost while we struggle to figure

Re: Journal integration for Scratch

2008-12-18 Thread John Maloney
Hi, Eben. Not to worry -- I did not see your email as an attack at all. You were just pointing out the fact that the Journal does support thumbnails and text info. That's a good point. Something as innovative as Sugar simply takes time to mature, and you can't get everything 100% right the

Journal integration for Scratch

2008-12-17 Thread Philipp Kocher
Hi John Do you plan a journal integration for scratch? At the moment it is not possible to delete scratch projects easily (just in terminal) and our students have difficulty to understand the file and folder structure in the dialog with the very small font. If you don't want to change