EN | JA
Native messaging host for browser extension withExEditor. The browser interacts with the host via messages, and the editor is executed by this host.
| Browser | Windows | Linux | Mac |
|---|---|---|---|
| Firefox | ✓ | ✓ | ✓ |
| Waterfox Current | ✓ | ✓ | ✓ |
| LibreWolf | ✓ *1 | ✓ |
*1: Shares host with Firefox.
If your browser is not listed or OS for that browser is left blank, file an issue for adding support. When filing an issue, if you know where to save the application manifest in that browser, please let me know.
NOTE: Node.js is required. Use maintenance LTS or higher.
When setting up the host, disable withExEditor installed in the browser.
Get host from withexeditorhost - npm and install globally, move to installed path.
NOTE: The installation path on Windows is basically C:\Users\XXX\AppData\Roaming\npm\node_modules\withexeditorhost, and on macOS and Linux it should be /usr/local/lib/node_modules/withexeditorhost.
If you can't find it, you can get the global installation path for npm with npm root -g.
Ref: Where does npm install the packages?
npm i -g withexeditorhost
cd path/to/npm/node_modules/withexeditorhostRun the setup command npm run setup.
npm run setupThen you will be asked which browser you want to setup the host for, so please select from the browsers listed.
After that, you will be prompted for the following, please input as appropriate.
- Enter editor path
- Enter command line options
- NOTE: Quote the argument if it contains spaces or backslashes.
For example:
-a -b "C:\Program Files" - NOTE: You can use the temporary file placeholder
${file}in the arguments. For example:-a ${file} -b
- NOTE: Quote the argument if it contains spaces or backslashes.
For example:
If config files are created successfully, enable withExEditor again. The browser and the host get connected and the editor will be ready to use.
NOTE: If you have enabled Mandatory Access Control (for example, AppArmor) for your web-browser, ensure the profile allows the withexeditorhost.sh script to be executed.
In the setup script you can specify some options.
To specify the browser, please use -b or --browser option.
npm run setup -- --browser=firefoxBy default, configuration files are saved under user's home directory.
- Windows:
C:\Users\[UserName]\AppData\Roaming\withexeditorhost\config\ - Mac:
~/Library/Application Support/withexeditorhost/config/ - Linux:
~/.config/withexeditorhost/config/
If you want to save configuration files in different location, use -c or --config-path option.
Quote path if it contains spaces or backslashes.
npm run setup -- --config-path="C:\Users\XXX\path\to\another\location"For other options, see help
npm run setup -- --helpBefore upgrading the host, disable withExEditor installed in the browser. Run install command.
npm i -g withexeditorhostThere is no need to run the setup script again after the upgrade. Enable withExEditor after the upgrade.