[Sugar-devel] EToys Saving Problem
Gary C Martin
gary at garycmartin.com
Fri Jan 15 11:07:38 EST 2010
On 15 Jan 2010, at 15:34, Walter Bender wrote:
> On Fri, Jan 15, 2010 at 10:09 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> On 15.01.2010, at 15:46, Gerald Ardito wrote:
>>> Thanks for this.
>>> I was able to find some lost EToys projects using your suggestion.
>>> I could use some help using copy-to-journal.
>>> I am getting an error about mimetype. What should I use?
>> For Etoys projects use "application/x-squeak-project".
>> Yes, it's maddening that copy-to-journal forces you to type that, when a simple call to gvfs-info (or its pythonesk incantation) would guess correctly most of the time (*).
> Is there a ticket open on this? If not, maybe there should be?
There has been a version of copy-to-journal kicking around the laptop wiki for quite some time (pre 8.2 I think), I was never sure why this improvement never made it into a release. Used to work well for me, but perhaps bit rotted somewhat by now (haven't tested it lately), here's the .py:
Wiki page with the description (basically, use a -g option to guess mime type using the file command:
>> - Bert -
>> [olpc at xo-0c-f3-0c ~]$ gvfs-info -a standard::content-type /usr/share/etoys/*.pr | tail -1 | sed 's/.* //'
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
> Walter Bender
> Sugar Labs
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Sugar-devel