WebExtensions/Native Messaging: Difference between revisions

updated Linux path
No edit summary
(updated Linux path)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
If you want to use native messaging, then you'll need some documentation and learn how to write an add-on using runtime.connectNative.
If you want to use native messaging, then you'll need some documentation and learn how to write an add-on using runtime.connectNative.


MDN: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/Runtime/connectNative
* [https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/Runtime/connectNative MDN docs] are brief at the moment.
Chrome docs: https://developer.chrome.com/extensions/nativeMessaging
* [https://developer.chrome.com/extensions/nativeMessaging Chrome docs] are helpful.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=1190682 tracking bug]
* Contact us on #webextensions or on dev-addons see [[Add-ons|getting in touch]].


You'll need to know where to write the manifest files and that's contained below.
You'll need to know where to write the manifest files and that's contained below.
Line 72: Line 74:
|Linux
|Linux
|Global
|Global
|<tt>/usr/{lib,lib64,share}/mozilla/NativeMessagingHosts/<name>.json</tt>
|<tt>/usr/{lib,lib64,share}/mozilla/native-messaging-hosts/<name>.json</tt>
|-
|-
|Linux
|Linux
canmove, Confirmed users
737

edits