Hi, Before thinking about solution, could you explain specificaly what you want to write to disk and how that will be used?
/Korakurider
On Tue, Apr 8, 2008 at 3:50 PM, Ties Stuij cjstuij@gmail.com wrote:
Hey list,
At OLE Nepal we need to let our etoys image allow writing to disk, however under rainbow the image is executed under another user id. What's the way to give an/our activity permission to write to certain directories without just making them world writable, which is surely not the way to go.
Thanks, /Ties _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
On Tue, Apr 8, 2008 at 12:46 PM, Korakurider korakurider@gmail.com wrote:
Hi, Before thinking about solution, could you explain specificaly what you want to write to disk and how that will be used?
/Korakurider
Well, I was wondering on a general level how Sugar handles this, because I ran into similar problems when trying DOOM last week. On a specific level I wondered how to save a Squeak image and how to deal with saving projects.
I already got my answers from an earlier mail to this list from Bert:
"You must have the startupInUntrustedDirectory preference enabled, in which case not the image directory becomes the default directory, but rather what was passed as SQUEAK_USERDIR environment variable in the etoys-activity script. That script takes care to set it to the activity-writable location ($SUGAR_ACTIVITY_ROOT/data), see
http://wiki.laptop.org/go/Low-level_Activity_API#Writable_Directories"
Then I got a warning about not being able to write to the changes file, and found some preference variables to toggle that'll do the work. (warnIfChangesFileReadOnly or warnIfNoChangesFile). That's enough info for me right now. But if someone has a good idea about saving an image and writing to the changes file on the XO, I'm all ears.
/Ties
On Tue, Apr 8, 2008 at 7:16 PM, Ties Stuij cjstuij@gmail.com wrote:
But if someone has a good idea about saving an image and writing to the changes file on the XO, I'm all ears.
If you just want to save your work during development in Squeak, the setup procedure in http://wiki.laptop.org/go/Smalltalk_Development_on_XO might help.
I think it is no good to directly overwrite ootb image/change file on activity directory.
/Korakurider
On Tue, Apr 8, 2008 at 4:46 PM, Korakurider korakurider@gmail.com wrote:
On Tue, Apr 8, 2008 at 7:16 PM, Ties Stuij cjstuij@gmail.com wrote:
But if someone has a good idea about saving an image and writing to the changes file on the XO, I'm all ears.
If you just want to save your work during development in Squeak, the setup procedure in http://wiki.laptop.org/go/Smalltalk_Development_on_XO might help.
During development, making the relevant directory world writable should be sufficient I guess.
I think it is no good to directly overwrite ootb image/change file on activity directory.
As a general policy, no. But I just wondered about it in general. The situation seems to me to be a bit ugly. Maybe I should just go on and do practical stuff though. But it would be useful perhaps when some kids might want to start hacking on Squeak level. But maybe not...
/Ties
Ties Stuij wrote:
On Tue, Apr 8, 2008 at 4:46 PM, Korakurider korakurider@gmail.com wrote:
On Tue, Apr 8, 2008 at 7:16 PM, Ties Stuij cjstuij@gmail.com wrote:
But if someone has a good idea about saving an image and writing to the changes file on the XO, I'm all ears.
If you just want to save your work during development in Squeak, the setup procedure in http://wiki.laptop.org/go/Smalltalk_Development_on_XO might help.
During development, making the relevant directory world writable should be sufficient I guess.
I think it is no good to directly overwrite ootb image/change file on activity directory.
As a general policy, no. But I just wondered about it in general. The situation seems to me to be a bit ugly. Maybe I should just go on and do practical stuff though. But it would be useful perhaps when some kids might want to start hacking on Squeak level. But maybe not...
/Ties ______________
A activity with Squeak would be nice, and even useful :-) It could just be the Etoy dev image with write permission.
Karl
On 08.04.2008, at 06:21, karl wrote:
A activity with Squeak would be nice, and even useful :-) It could just be the Etoy dev image with write permission.
Or the etoys.image with the kids preferences off (the -dev image isn't that different from what we ship anymore).
That activity could actually run a script on the pre-installed image so it saves to the activity's data directory on the first start ...
OTOH this has the feel of a work-around, I'd like to see ideas doing that in the Etoys activity directly.
- Bert -
On 08.04.2008, at 06:21, karl wrote:
A activity with Squeak would be nice, and even useful :-) It could just be the Etoy dev image with write permission.
Well, the Right Thing would be to check the image+changes files into the datastore. Problem is, it is unusably inefficient to do so currently because a Journal entry can only hold one file at a time. That means those two files would have to be pt into an archive and copied into/out of the datastore. Development images can easily grow to 50 or 100 MB, so this is not really an option. Even copying 20 MB takes a while.
- Bert -
etoys-dev@lists.squeakfoundation.org