クロムから外部アプリケーションを開くアプリを開発しています。私は NPAPI でそれを行いますが、Chrome はそのサポートを中止します。また、Native Messaging または Native Client で実現できる唯一の方法だと言う人もいますが、その方法がわかりませんでした。
Native Client でこれを試しましたが、system
呼び出しが機能しません。
JavaScript の場合:
naclModule.postMessage('start notepad'); // just an example, I handle it in different way.
C++ の場合:
virtual void HandleMessage(const pp::Var& var_message) {
if (!var_message.is_string())
return;
system("start notepad.exe");
}