I'm actually trying to launch my C# mono executable in OSX with Chrome Native Messaging.
So far, I've never been able to launch the executable with OSX (it works well on Windows)
Here's the manifest of the native messaging host :
{
"allowed_origins" :
[
"chrome-extension://njbimgehbcecolchhhfpamfobkedoein/"
],
"description" : "test native messaging host",
"name" : "com.myapp.native.host",
"path" : "/Applications/myapp/launch.sh",
"type" : "stdio"
}
Here's the launch.sh file :
#!/bin/bash
/usr/local/bin/mono --runtime=v4.0.30319 my_executable.exe "$@"
I constantly get the following error :
"Native host has exited."
I tried to launch the sh file and it seems to work well (it reads entries in stdin)
1/ Is this method likely to work, and I'm missing something ? 2/ Is there another way to launch an executable using Mono ? (I tried putting directly the executable path on the manifest but it also doesn't work 3/ Should I use something else than Mono (python / C++), I would have to rework my executable and it could cost a lot.