Try:<div><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: Times; font-size: medium; "><div><div>
Environment.GetFolderPath (Environment.SpecialFolder.Personal);</div><div>or</div><div>string homeOSFolder = Environment.GetEnvironmentVariable(&quot;HOME&quot;);</div></div><div><br></div><div><br></div></span><div class="gmail_quote">
On Thu, Mar 31, 2011 at 12:09 PM, Florian Heiber <span dir="ltr">&lt;<a href="mailto:flo@rootof.net">flo@rootof.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Hi guys,<div><br></div><div>I was wondering what&#39;s the proper way to get a user&#39;s home directory path? I was hoping I could do something like this in Objective-C:</div><div><br></div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font color="#A9A9A9">NSString *path = [@&quot;~&quot; stringByExpandingTildeInPath];</font></div></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 179, 249)">
<span style="color:#ffffff"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3"><span style="font-size:12px">There seems to be neither this method nor</span></font><span style="font-family:Courier, Consolas, monospace;font-size:12px;border-collapse:collapse;color:rgb(102, 102, 102);line-height:13px;white-space:pre-wrap">NSHomeDirectory()</span><span style="font-family:Helvetica;font-size:medium">. So what&#39;s the right approach here?</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:Helvetica;font-size:medium">Thanks!</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><br></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium">Cheers</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-family:Helvetica;font-size:medium">f</span></div></div><br>_______________________________________________<br>
Mono-osx mailing list<br>
<a href="mailto:Mono-osx@lists.ximian.com">Mono-osx@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-osx</a><br>
<br></blockquote></div><br></div>