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
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@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
Not so dark he cannot code.
Gary Dunn Open Slate Project http://openslate.org
On Aug 10, 2011 3:59 AM, "Igor Stasenko" siguctua@gmail.com wrote:
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@inria.fr wrote:
I guess this has been me...
-- Best regards, Igor Stasenko AKA sig.
vm-dev@lists.squeakfoundation.org