This commit is contained in:
Shihaam Abdul Rahman 2023-10-04 01:18:04 +05:00
parent 950ddab4fd
commit 822cd31b60
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -31,14 +31,14 @@ 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. \
obviously change the docker.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 script, be sure to run it along with the container
```bash
#!/bin/bash
XDG_OPEN_LISTENER_PORT-6969
XDG_OPEN_LISTENER_PORT=6969
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"
```