Sandbox container path lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- gldm · 2015-04-17 08:35 There is a smart way to  get the path of the container for a sandboxed app? Let's suppose I am compiling an app with lazarus, I've created the bundle (say, mytest.app) and sandboxed it. At application's first execution, I like to copy some of the resources in the bundle into the container path (the only path my app can write safely) source path: mytest.app/Contents/Resources/ destination path: /Users//Library/Containers/com../Data/Documents/. Now, the question is: there is a clean, safe way in to extract the path /Users//Library/Containers/  ? There is some sort of environment variable? Or should I mount the path assuming Apple will not change the standard path of sandbox containers? (thanks in advance) ---------------------------------------------------------------------- felipemdc · 2015-04-17 16:58 There is some objective-c code here which should be easy to translate to objective pascal: http://stackoverflow.com/questions/11804309/where-can-a-sandboxed-mac- app-save-files