macOS Catalina报错
DisconnectErr:Native host has exited.
google了一下
https://stackoverflow.com/questions/59543692/failed-to-connect-native-host-has-exited
I'm a bit late here, but I just ran into this too. I managed to fix it by moving my host app into /Applications.
I suspect this is related to a Catalina permissions issue, though I wasn't able to find anything relevant in the "Security & Privacy" tab of System Preferences.
这个maoxian要装一个本地程序
现在后解压改一下config.yaml中的data_dir
# ATTENTION: restart the browser to apply your changes.
environment: 'production'
data_dir: '/Users/TiM/Documents/clippings'
# This Application won't using the proxy info of browser.
# We only support http/https proxy.
# UnComment and change below items If you need proxy.
# proxy_url: 'http://127.0.0.1:3000'
# username: 'jake'
# password: 'password'
然后把这个文件夹都挪动到/Applications目录下再./install.sh
就行
总是这个装完了以后这个path要对
TiM@FanboshideMacBook-Pro /Library/Google/Chrome/NativeMessagingHosts ll
total 16
-rw-r--r-- 1 root wheel 277B 3 11 18:09 maoxian_web_clipper_native.json
-rw-r--r--@ 1 root wheel 226B 3 11 17:54 maoxian_web_clipper_native.json-e
cat maoxian_web_clipper_native.json
{
"name": "maoxian_web_clipper_native",
"description": "Native aplication of maoxian web clipper",
"path": "/Applications/maoxian-web-clipper-native-osx-chrome/main.rb",
"type": "stdio",
"allowed_origins": [ "chrome-extension://kjahokgdcbohofgdidndeiaigkehdjdc/" ]
}