Execute a program from a Chrome Extension
Asked Answered
R

1

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?

Render answered 11/11, 2013 at 22:49 Comment(2)
possible duplicate of Start an external application from a Google Chrome Extension?Sandlin
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.Overhasty
C
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.

Contrabass answered 11/11, 2013 at 22:58 Comment(1)
The links in the solution are not working anymore, please refer to the new url: developer.chrome.com/docs/apps/nativeMessagingKuban

© 2022 - 2024 — McMap. All rights reserved.