Remember my tweet about APP_SANDBOX_CONTAINER_ID on Sierra? We had to update Name Mangler because of that:https://twitter.com/manytricks/status/757631157496197120 …
-
-
@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
-
@petermaurer Yes, in practice, they do differ. pw_dir has always been the “real” home directory. -
@mjtsai Interesting. Come to think of it, one could also check by doing something the sandbox won't let you do. If it fails, assume sandbox.
-
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