better socat doc

This commit is contained in:
2023-10-04 00:54:05 +05:00
parent 536bda25fb
commit e542a91b9d

View File

@ -30,9 +30,15 @@ services:
- /usr/share/icons:/usr/share/icons # Icons for UI, like Mouse cursor
- /tmp/.X11-unix:/tmp/.X11-unix # X11 socket for GUI
```
obviously change the XDG_OPEN_LISTENER_HOST to your host machines IP. \
and run `podman-compose up -d` or if you wanna live dangerously then you may..: `docker compose up -d`
Telegram cannot open links from the container to host machine, and to work around that is this command
`socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"`
Telegram cannot open links from the container to host machine, and to work around that is this script, be sure to run it along with the container
```bash
#!/bin/bash
XDG_OPEN_LISTENER_PORT-6969
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"`
```
k, thanks, bye