Skip to content

Commit da8198a

Browse files
committed
Update: Proxy for Discord
Signed-off-by: Ali Mehraji <a.mehraji75@gmail.com>
1 parent eca69b2 commit da8198a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

no-publish/proxy-setup.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,26 @@ For Running [Discord](https://discord.com/) through a Proxy Server :
109109
> That file will be overwritten when Discord updated. </br>
110110
> Try to not install Discord via Snap or Flatpak , I recommend To install it via package-manager or its source.
111111
112+
Its better to add proxy server in its `wrapper` which is an updater:
113+
114+
```bash
115+
ls -l /usr/bin/Discord
116+
lrwxrwxrwx. 1 root root 27 Sep 18 03:30 /usr/bin/Discord -> ../lib64/discord/wrapper.sh
117+
```
118+
119+
```shell
120+
#!/usr/bin/bash
121+
122+
# Path to discord binary
123+
DISCORD_BIN=$(dirname $(readlink -f $0))/Discord
124+
125+
# Run python script to disable check updates
126+
/usr/lib64/discord/disable-breaking-updates.py
127+
128+
# Launch discord
129+
exec "$DISCORD_BIN" "$@" --proxy-server="127.0.0.1:10808"
130+
```
131+
112132
## Vscode
113133

114134
vscode desktop config file is `/usr/share/applications/code.desktop` :

0 commit comments

Comments
 (0)