xorilog / docker-telegram

Dockerfile for a Telegram gui client
69 stars 32 forks source link

GUI can not be started on macOS #18

Closed ArtsiomAntropau closed 1 year ago

ArtsiomAntropau commented 3 years ago

gui can not be started on macOS Big Sur v11.5.2

output

(Telegram:1): glibmm-WARNING **: Glib::Error::throw_exception():
  unknown error domain 'g-spawn-exit-error-quark': throwing generic Glib::Error exception

(Telegram:1): glibmm-WARNING **: Glib::Error::throw_exception():
  unknown error domain 'g-spawn-exit-error-quark': throwing generic Glib::Error exception

(Telegram:1): glibmm-WARNING **: Glib::Error::throw_exception():
  unknown error domain 'g-spawn-exit-error-quark': throwing generic Glib::Error exception

qt.qpa.xcb: could not connect to display 192.168.31.23:0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, wayland, wayland-egl.

command

IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
docker run --rm -it --name telegram \
       -e DISPLAY=$(xhost + $(hostname) > /dev/null; echo $IP):0 \
       -v /etc/localtime:/etc/localtime:ro \
       -v tg:/home/user/.local/share/TelegramDesktop/ \
       xorilog/telegram
xorilog commented 3 years ago

Hello @ArtsiomAntropau,

I do not have a mac anymore, and cannot test this on macOS Big Sur v11.5.2. Are you a new user or you already had something working before ?

ArtsiomAntropau commented 3 years ago

@xorilog hello, I'm a new user and can not test it on the previous versions

xorilog commented 1 year ago

Cannot reproduce

simon-liebehenschel commented 1 year ago

@ArtsiomAntropau Did you solve this? I get a similar error on Fedora 38:

docker run --rm -it --name telegram \
       --hostname=$(hostname) \
       -e DISPLAY=unix$DISPLAY \
       -e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
       -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 /home/sam/telegram_docker/.TelegramDesktop:/home/user/.local/share/TelegramDesktop/ \
       xorilog/telegram
Detected locale "C" with character encoding "UTF-8", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
qt.qpa.xcb: could not connect to display unix:0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland, wayland-egl, xcb.