[etoys-dev] Re: Etoys new fonts
yoshiki at vpri.org
Fri Jun 11 14:48:05 EDT 2010
At Fri, 11 Jun 2010 14:57:32 -0300,
Ricardo Moran wrote:
> Please correct me if I'm wrong. What I mean is: currently Etoys uses the default directory to store project files and so
> it changes the default directory to point to a different place than the imagePath. But the default directory is used for
> a lot of other stuff (saving the image with "save as...", looking for fonts, monticello's package cache, writing logs,
> and so on). Maybe we could keep the default directory pointing to the image path (as the squeak trunk image) and simply
> change the directory where we store the project files. This directory would be "etoysPath" (or any other name you
> consider better).
> So, what I propose is, instead of making a "resourcePath" for locales, quickguides, fonts, etc. we create an "etoysPath"
> only for storing projects and we change the default directory back
> to the image path.
One thing is that Etoys needs more strict readonly vs. read-write
permission distinction of files and directories than a typical trunk
installation, as somebody can make a malicious project and upload it
to a server and mess up the writable directory. So, in general the
fonts should be in the read-only directory. (It has never been a
problem so far, and seraching two places like Subbu suggested would
have the advantage of allowing downloadable fonts, but less secure.)
I am pretty sure that you are not proposing to add a new directory
that SecurityPlugin knows. (A new directory accessing method that
returns already-known directory name.) But I am not still sure if
what you proposes simplifies the problem...
(I am not really closely following the discussion so forgive me if
I'm missing something.)
More information about the etoys-dev