原理
Notion mac端的桌面应用程序属于electron程序
参考 How do I get system wide proxy settings and apply the same for my electron app?
只需要启动的时候加入--proxy-server=[host:port]
就可以使用代理。
操作步骤
1. 进入到Notion的启动文件目录
法1:在应用程序中右击Notion显示包内容,进入Contents/MacOS
法2:直接cd cd /Applications/Notion.app/Contents/MacOS
2. 将原来的Notion启动文件改名
mv Notion Notion_
3. 重新创建一个Notion文件
vim Notion
写入以下内容
#!/bin/bash
cd /Applications/Notion.app/Contents/MacOS
./Notion_ --proxy-server="127.0.0.1:7890"
4. 赋予执行权限
chmod +x Notion