OSX Smalltalk vmFullPath

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OSX Smalltalk vmFullPath

Camillo Bruni

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
Reply | Threaded
Open this post in threaded view
|

Re: OSX Smalltalk vmFullPath

Igor Stasenko

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 <[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: OSX Smalltalk vmFullPath

ccrraaiigg
 

> 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 :)

     I'll guard the door. :)


-C

--
Craig Latta
www.netjam.org/resume
+31   6 2757 7177
+ 1 415  287 3547


Reply | Threaded
Open this post in threaded view
|

Re: OSX Smalltalk vmFullPath

Gary Dunn-2
In reply to this post by Igor Stasenko
 

Not so dark he cannot code.

Gary Dunn
Open Slate Project
http://openslate.org

On Aug 10, 2011 3:59 AM, "Igor Stasenko" <[hidden email]> 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 <[hidden email]> wrote:
>
> I guess this has been me...

--
Best regards,
Igor Stasenko AKA sig.