<br><br><div class="gmail_quote">On Sun, Oct 10, 2010 at 12:18 PM, John M McIntosh <span dir="ltr"><<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Asking for the home directory should invoke a platform specific method that does the right thing.<br>
Perhaps on unix based machines you can use ~ ? </blockquote><div><br></div><div>Surely you use getenv("HOME") right? ~ is an abbreviation implemented in the shell. It is not meaningful to system calls; i.e. open("~",0) attempts to open a file called "~" in the current directory, /not/ /Users/me.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> However on systems that have file security turned on then you<br>
might need to lookup the squeak un trusted directory since the answer could be different.<br>
<br>
<br>
On 2010-10-10, at 11:39 AM, Lukas Renggli wrote:<br>
<br>
><br>
> On 10 October 2010 07:26, John M McIntosh<br>
> <<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>> wrote:<br>
>><br>
>> 4.2.5x SqueakUnTrustedDirectory -> ~/Library/Preferences/Squeak/Internet/My Squeak/<br>
>><br>
>> 5.8.x SqueakUnTrustedDirectory -> /foobar/tooBar/forSqueak/bogus/<br>
>><br>
>> What would you like it to be?<br>
><br>
> '/foobar/tooBar/forSqueak/bogus/' doesn't look meaningful, it doesn't<br>
> even exist on my system.<br>
><br>
> The Filesystem library uses #untrustedUserDirectory this to find the<br>
> home directory. Maybe there is a better way to do that on Mac?<br>
><br>
> Lukas<br>
><br>
> --<br>
> Lukas Renggli<br>
> <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
<br>
--<br>
===========================================================================<br>
John M. McIntosh <<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>> Twitter: squeaker68882<br>
Corporate Smalltalk Consulting Ltd. <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a><br>
===========================================================================<br>
<br>
<br>
<br>
<br>
<br></blockquote></div><br>