Reputation: 100462
I am building an app in a CI/CD environment on a Mac host. As part of this build, I need to run a command that writes to FileManager.SearchPathDirectory.applicationSupportDirectory
, which is normally /Users/username/Library/Application Support/
The problem is that my build environment is a sandbox that prevents writing outside of /tmp
. In the sandbox, $HOME
is set to /tmp
which most unix-y commands use to put their config files relative to $HOME
(eg. $HOME/.git
or whatever). But any Mac app that puts its files in FileManager.SearchPathDirectory.applicationSupportDirectory
will not be relative to $HOME
(which is now /tmp
), it will be relative to /Users/username/Library/Application Support
, which will fail in the sandbox.
On a Mac, how can I reconfigure FileManager.SearchPathDirectory.applicationSupportDirectory
to point to a directory on the /tmp
filesystem?
Upvotes: -1
Views: 16