[Vm-dev] OSX Smalltalk vmFullPath

Igor Stasenko siguctua at gmail.com
Wed Aug 10 13:59:44 UTC 2011


Yeah.. a paths handling in OSX is a mess.. A command-line interface is
also broken.

I will take Esteban in a dark room @ESUG and won't let him out till he
will fix it :)

On 10 August 2011 13:15, Camillo Bruni <camillo.bruni at inria.fr> wrote:
>
> I guess this has been mentioned before…
>
> But to me the current implementation under OSX makes no sense whatsoever, since you basically get only half of the needed information back (ie. I don't know which executable is running the image)
>
> Smalltalk vmFullPath yields '/Applications'
>
> so what about getting at least the '.app' dir? (most of the information can be reconstructed from there on)
>
> This would simply require to change setVMPathFromApplicationDirectory:
>
> -       self.vmPathStringURL = [NSURL fileURLWithPath: [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]];
> +       self.vmPathStringURL = [NSURL fileURLWithPath: [[NSBundle mainBundle] bundlePath]];
>
> camillo



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list