Auto install chrome extension in a sandboxed app

Hello,

I have built a mac osx app which is intended to work in tandem with a chrome extension to provide some productivity functionality to the user.

In order to keep the install process short for the user and reduce hurdles to using the app, I would like to automatically install the chrome extension when the user installs the app. This is made possible by chrome by creating a .json file under:

Code Block
~/Library/Application Support/Google/Chrome/External Extensions/

However, in a sandboxed app I do not have access to said directory.

Furthermore I also need to place another .json file under

Code Block
~/Library/Application Support/Google/Chrome/NativeMessagingHosts/

in order to allow the chrome extension to talk to the native mac app. I face the same issue there.

Is there a way for me to place my two .json files under the specified directories in a sandboxed app?

Thanks
Auto install chrome extension in a sandboxed app
 
 
Q