Our program creates various settings files that it needs to read and write to. However if the OS X user has a global umask set such that files are created without write permissions, our app cannot write to them.
Requirements:
- Asking user to change global umask is not an option.
- Our app should create files that are read/writable by everyone.
I have thought of creating a bash script that sets umask 000
and then launches are real executable. We would then set the bash script as the executable in our app bundles info.plist.
Does anyone have ideas on what is the best approach to solve this problem?