@petermaurer What are you using instead?
-
-
-
@mjtsai [[[[NSProcessInfo processInfo] environment] objectForKey: @"HOME"] rangeOfString: @"/Library/Containers/"].location!=NSNotFound -
@mjtsai That's an evil hack and not 100% fail-safe, but it's good enough for now. We had to do _something_ for Sierra users. -
@petermaurer Yeah. Maybe slightly better to compare pw_dir to the Foundation-reported home directory? -
@mjtsai Would those differ? It's been my impression that HOME is as canonical as it gets on Unix. So if the sandbox messes with that… - View other replies
-
@mjtsai Besides, I need to know if I'm sandboxed. A mere difference could be some other weird hack. The clean solution, of course, would… -
@mjtsai …be to do it all in the preprocessor. But I'd really rather not, and that would be a huge change in our shared sandbox-related code.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Peter Maurer
Michael Tsai