docker-telegram icon indicating copy to clipboard operation
docker-telegram copied to clipboard

error: XDG_RUNTIME_DIR is invalid or not set in the environment

Open Zapa3a opened this issue 8 months ago • 3 comments

I am running with command

sudo docker run --rm -it --name telegram \
       --hostname=$(hostname) \
       -e DISPLAY=unix$DISPLAY \
       -e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
       -e XAUTHORITY=$XAUTHORITY \
       -v $XAUTHORITY:$XAUTHORITY \
       -v /dev/snd:/dev/snd --privileged \
       -v /tmp/.X11-unix:/tmp/.X11-unix \
       -v "/home/$(whoami)/.Xauthority:/home/user/.Xauthority" \
       -v $XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse \
       -v /etc/localtime:/etc/localtime:ro \
       -v /.local/share/TelegramDesktop/ \
       xorilog/telegram

and everything works well, except new telegram bots like '@wallet' and other, which are trying to open a new window for their work then my container crushes with terminal output:

qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
error: XDG_RUNTIME_DIR is invalid or not set in the environment
Fatal: Failed to open server socket: "6ce7de587ddacca886605fc2d7c74451-TelegramDesktop-webview-291-wayland". XDG_RUNTIME_DIR is: ""

or

qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
[libvpx-vp9 @ 0x7f1100ce9400] v1.13.0
[libvpx-vp9 @ 0x7f1100ce9400] v1.13.0
[libvpx-vp9 @ 0x7f1100ce9800] v1.13.0
[libvpx-vp9 @ 0x7f1100ce9800] v1.13.0
qt.gui.imageio.jpeg: ./lib/jpegli/decode_scan.cc:535: Incomplete scan detected.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
error: XDG_RUNTIME_DIR is invalid or not set in the environment
Fatal: Failed to open server socket: "6ce7de587ddacca886605fc2d7c74451-TelegramDesktop-webview-308-wayland". XDG_RUNTIME_DIR is: ""

depending on which bot im launching

Ubuntu 23.04, xorilog/telegram:latest

Zapa3a avatar Jun 13 '24 18:06 Zapa3a