Arch Linux 为 Discord 设置代理

复制图标到用户所属目录

$ cp /usr/share/applications/discord.desktop ~/.local/share/applications/

修改启动命令为其添加代理

[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=env http_proxy=http://127.0.0.1:8123 https_proxy=http://127.0.0.1:8123 /usr/bin/discord --proxy-server="http://127.0.0.1:8123"
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
参考:

https://xcel.me/howto-set-proxy-for-discord-app-on-linux/

posted @ 2023-01-06 22:47  3yude  阅读(309)  评论(0)    收藏  举报