The environment is fungible. If I remove or change HOME in the
environment before launching your app, is that what you want? Or do
you want the real home directory associated with the user?
Very good point. Looks like getenv() is not a good choice for this
situation.
On 2006-10-31, at 07:37:18, Laurence Harris wrote:
Just thought I'd point out that this leaks the string returned by
CFURLCopyFileSystemPath.
There used to be this saying about Vegas house musicians reportedly
having to able to: "read the spots off a leopard goin' 90 MPH in the
dark after three scotches, in the darkā¦". I think you got the gig. :)
On 2006-10-31, at 07:40:12, Eric Schlegel wrote:
In addition to these, I think you can also use glob (man 3 glob).
You'd just need to extract the file-system representation of your
CFURL as a UTF8 string, pass it to glob, then create a new CFURL.
I've now tried it as well. Two new funcs are listed below. As I'm
writing this, I see I've put an extra step in the glob method. Maybe
I can shave a bit off it's time but it seems to me it requires a
certain overhead anyway, so it might not get much faster. The pwhome
and gehome measured include fixes for the leak Larry spotted.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden