[squeak-dev] Starting an image from SqueakConsole manipulates pwd

K K Subbu kksubbu.ml at gmail.com
Sun Jun 14 10:18:44 UTC 2020


On 14/06/20 1:14 pm, Tobias Pape wrote:
> What would the cwd be if you double-click on a desktop (linux/win/mac)?
> most users do not start the image using a shell…

It shouldn't matter. CWD is a property of the current process and shared 
between the vm and plugin. It is just one of the platform-specific paths 
that is used to resolve partial names into complete paths. I don't see a 
need for the image to resolve the complete path before calling the 
plugin to open/create files.

Instead of expecting the image to only give complete paths, let the 
plugin resolve partial paths like 'squeak.image' by looking up a list of 
directories like vmPath, CWD or even something like $HOME or $DOCUMENTS.

Earlier, someone (Tim?) proposed that squeak.image/changes be 
distributed in the VM directory as readonly and let developers save 
copies in their own directory. It will be trivial to support such 
deployments if plugins resolved partial names too.

Regards .. Subbu


More information about the Squeak-dev mailing list