Skip to content

consider replacing with native-messaging-hosts? #4

@koo5

Description

@koo5

the protocol seems well developed:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging

a "client" installs wiith a single command:
https://github.com/andy-portmen/native-client/releases

and it works:
https://add0n.com/open-in.html

The way this seems to work is, the "client installer" puts a file like this:

{
    "name": "com.add0n.node",
    "description": "Node Host for Native Messaging",
    "path": "/home/koom/.config/com.add0n.node/run.sh",
    "type": "stdio",
    "allowed_extensions": ["{b8fa78dd-dae1-4839-9d0e-ce5e213083ce}","{5610edea-88c1-4370.....
    }

into ~/.mozilla/native-messaging-hosts/com.add0n.node.json where the browser picks it up.

and /home/koom/.config/com.add0n.node/run.sh is your code (or andy-portmen's code) that runs whatever it's told to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions