18

The Google Chrome NPAPI is being phased out.

Without using NPAPI, is there any way to allow an extension to execute a command on the local system?

Frederik
  • 1,458
  • 4
  • 15
  • 26
  • possible duplicate of [Start an external application from a Google Chrome Extension?](http://stackoverflow.com/questions/2652094/start-an-external-application-from-a-google-chrome-extension) – Maks3w Feb 11 '15 at 14:42
  • 2
    The above mentioned possible duplicate isn't as up-to-date as this one. The duplicate talks about using NPAPI which this question is talking about how to replace. – Beth Lang Sep 06 '16 at 18:39

1 Answers1

25

There is chrome.runtime.sendNativeMessage which can be used to send a message to a native application and chrome.runtime.connectNative which allows for a more persistent connection.

So, you can't directly execute a command, but you can have a native app do it for you.

You can find more info on Native Messaging in the docs.

gkalpak
  • 47,844
  • 8
  • 105
  • 118