Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: chrome/common/extensions/docs/examples/api/nativeMessaging/README.txt

Issue 768373004: Improve native messaging documentation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments #4 + fix Python script for Windows Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 This directory contains an example of chrome application that uses native 1 This directory contains an example of chrome application that uses native
2 messaging API that allows to communicate with a native application. 2 messaging API that allows to communicate with a native application.
3 3
4 In order for this example to work you must first install the native messaging 4 In order for this example to work you must first install the native messaging
5 host from the host directory. 5 host from the host directory.
6 6
7 To install the host: 7 To install the host:
8 8
9 On Windows: 9 On Windows:
10 Add registry key 10 Run install_host.bat script in the host directory.
11 HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chro me.example.echo 11 This script installs the native messaging host for the current user, by
12 or 12 creating a registry key
13 HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrom e.example.echo 13 HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrom e.example.echo
14 and set its default value to the full path to 14 and setting its default value to the full path to
15 host\com.google.chrome.example.echo-win.json . Note that you need to have 15 host\com.google.chrome.example.echo-win.json .
16 python installed. 16 If you want to install the native messaging host for all users, change HKCU to
17 HKLM.
18 Note that you need to have python installed.
17 19
18 On Mac and Linux: 20 On Mac and Linux:
19 Run install_host.sh script in the host directory: 21 Run install_host.sh script in the host directory:
20 host/install_host.sh 22 host/install_host.sh
21 By default the host is installed only for the user who runs the script, but if 23 By default the host is installed only for the user who runs the script, but if
22 you run it with admin privileges (i.e. 'sudo host/install_host.sh'), then the 24 you run it with admin privileges (i.e. 'sudo host/install_host.sh'), then the
23 host will be installed for all users. You can later use host/uninstall_host.sh 25 host will be installed for all users. You can later use host/uninstall_host.sh
24 to uninstall the host. 26 to uninstall the host.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698