<br><br><div class="gmail_quote">On Sun, Oct 10, 2010 at 12:18 PM, John M McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;</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(&quot;HOME&quot;) right?  ~ is an abbreviation implemented in the shell.  It is not meaningful to system calls; i.e. open(&quot;~&quot;,0) attempts to open a file called &quot;~&quot; 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>
&gt;<br>
&gt; On 10 October 2010 07:26, John M McIntosh<br>
&gt; &lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 4.2.5x   SqueakUnTrustedDirectory -&gt;  ~/Library/Preferences/Squeak/Internet/My Squeak/<br>
&gt;&gt;<br>
&gt;&gt; 5.8.x    SqueakUnTrustedDirectory -&gt; /foobar/tooBar/forSqueak/bogus/<br>
&gt;&gt;<br>
&gt;&gt; What would you like it to be?<br>
&gt;<br>
&gt; &#39;/foobar/tooBar/forSqueak/bogus/&#39; doesn&#39;t look meaningful, it doesn&#39;t<br>
&gt; even exist on my system.<br>
&gt;<br>
&gt; The Filesystem library uses #untrustedUserDirectory this to find the<br>
&gt; home directory. Maybe there is a better way to do that on Mac?<br>
&gt;<br>
&gt; Lukas<br>
&gt;<br>
&gt; --<br>
&gt; Lukas Renggli<br>
&gt; <a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
<br>
--<br>
===========================================================================<br>
John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;   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>