Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start an external application from a Google Chrome Extension?

How to start an external application from a Google Chrome Extension?

So basically I have an executable file which does the job when you launch it. I need to be able to start it without a window (it is a console application) and pass the current URL to it in an argument,

like image 655
Kristina Brooks Avatar asked Apr 16 '10 10:04

Kristina Brooks


People also ask

Can a Chrome extension access file system?

For example, apps or extensions can allow users to upload files to a website. Allows app or extension to create, read, navigate, and write to the user's local file system at a user-selected location.

How do I add an external extension in Chrome?

In Chrome, navigate to chrome://extensions/Now drag and drop the extension from your file manager anywhere onto the extensions page in Chrome. If the extension is a . crx file you will be asked to review the permissions and add the extension. Done!


1 Answers

Previously, you would do this through NPAPI plugins.

However, Google is now phasing out NPAPI for Chrome, so the preferred way to do this is using the native messaging API. The external application would have to register a native messaging host in order to exchange messages with your application.

like image 74
jnewbery Avatar answered Oct 17 '22 10:10

jnewbery