We have a macOS app built using a custom installer. Our installer contains
- the main app
- a helper app that is embedded within the main app
- a postinstall script that launches the helper app
On a successful installation, the postinstall script launches the helper app, which depends on the TMPDIR environmental variable to function correctly. Unfortunately, the installation process takes place within the PackageKit sandbox, changing the value of TMPDIR. This causes our helper app to not work correctly when launched through the postinstall script. Is there a way to start my helper app on a successful installation without changing TMPDIR?