admin管理员组文章数量:1289845
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?
本文标签:
版权声明:本文标题:macos - Configure OSX environment to point NSSearchPathDirectory.NSApplicationSupportDirectory somewhere else - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741481047a2381173.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论