From e542a91b9d23ef2fcc30a5e836e8caf296df7ceb Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 4 Oct 2023 00:54:05 +0500 Subject: [PATCH] better socat doc --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f26ea8b..526b9d3 100644 --- a/README.md +++ b/README.md @@ -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