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

GUI can not be started on macOS

Open ArtsiomAntropau opened this issue 3 years ago • 2 comments

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

ArtsiomAntropau avatar Aug 23 '21 21:08 ArtsiomAntropau

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 ?

  • [ ] On Mac
  • [ ] On a previous version of macOS Big Sur
  • [ ] On a previous version of macOS ?

xorilog avatar Aug 24 '21 10:08 xorilog

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

ArtsiomAntropau avatar Aug 24 '21 11:08 ArtsiomAntropau

Cannot reproduce

xorilog avatar Jan 26 '23 12:01 xorilog

@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.

simon-liebehenschel avatar Aug 05 '23 15:08 simon-liebehenschel