I am trying to write an app that will trigger an pkg to open so the user can install this. I have the code and it is working well except for the following.
When I try to open the pkg file using
open /tmp/mypackage.pkg in most cases it will open the Finder to the users home folder not the package.
I have checked and the package is present within the specified directory and the application is creating the correct command.
The command i am using to do this is in python:
subprocess.Popen(['open', '/tmp/mypackage.pkg']) application.close()