Suggestion: Minor improvement? to

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Suggestion: Minor improvement? to

This post has NOT been accepted by the mailing list yet.

Given that I now have both the newer VM and image from the Ubuntu Pharo PPA, and the VM and image from PBE, opening a file browser and clicking on an image saved from PBE fails, because it wants to open the newer VM.  

No problem. I'll just use from the CLI.  Oh, wait. It always wants to use Contents/Resources/pharo.image.

No problem. Fix so that it accepts an optional parameter specifying the image name to open, sans path and ".image".  Not especially brilliant, and bash experts might have a better way (or caveats as to why this is a bad idea), but now I have something that behaves, with very few changes to the original

"./" opens the default Contents/Resources/pharo.image
"./ myPharo" opens Contents/Resources/myPharo.image

Here's my variation on

# path
ROOT=`dirname $0`

# execute
exec "$BASE/squeakvm" \
	-plugins "$BASE" \
	-encoding latin1 \
	-vm-display-X11 \