flathub / net.jami.Jami

https://flathub.org/apps/details/net.jami.Jami
GNU General Public License v3.0
7 stars 7 forks source link

Doesn't run with error : Could not load the Qt platform plugin "xcb" #44

Closed maymage closed 2 years ago

maymage commented 2 years ago
flatpak run net.jami.Jami 
qt.qpa.xcb: could not connect to display 
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: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

under

flatpak info net.jami.Jami 

Jami - Privacy-oriented voice, video, chat, and conference platform

         Kennung: net.jami.Jami
             Ref: app/net.jami.Jami/x86_64/beta
     Architektur: x86_64
           Zweig: beta
         Version: 20211125.2.c5c0f617
         License: GPL-3.0+
        Ursprung: flathub-beta
        Sammlung: org.flathub.Beta
    Installation: system
     Installiert: 196,2 MB
Laufzeitumgebung: org.kde.Platform/x86_64/5.15-21.08
             Sdk: org.kde.Sdk/x86_64/5.15-21.08

          Commit: 2f8f8d03cd13dd638c7837cf89754e2fcb4bd526d1539f77b4f5e382d94138da
          Parent: ac65228f84f28969be3735276b6b3bd0430b4cba2a1c8cafbfd691008264f4a4
         Subject: use org.kde.Platform 5.15-21.08 (616747ee)
            Date: 2021-11-28 22:54:24 +0000

and

flatpak --version
Flatpak 1.12.2
FuchtelJockel commented 2 years ago

You could try to remove the QT_QPA_PLATFORM variable.

flatpak override net.jami.Jami --unset-env=QT_QPA_PLATFORM
flatpak override net.jami.Jami --unset-env=GDK_BACKEND

I currently enforce X11/XWayland because the client has issues with Wayland. Are you using a Wayland or X11 session?

maymage commented 2 years ago
flatpak override net.jami.Jami --unset-env=QT_QPA_PLATFORM
flatpak override net.jami.Jami --unset-env=GDK_BACKEND

That made Jami work again, thanks!


I currently enforce X11/XWayland because the client has issues with Wayland. Are you using a Wayland or X11 session?

I am using Wayland.. the guestures on Gnome/Wayland are way too cool..

FuchtelJockel commented 2 years ago

Seams like XWayland is broken in your Gnome session, can you run something simple like xeyes?

maymage commented 2 years ago

Yeah, xeyes works.

I've just reset flatseal for jami. Maybe that's it.

maymage commented 2 years ago

In fact I had

socket=wayland
socket=fallback-x11

toogled on

Bildschirmfoto von 2021-11-30 15-50-27

FuchtelJockel commented 2 years ago

I explicitly disabled Wayland because the client will crash if it gets minimized to tray. Does it work if you reset everything to default?

maymage commented 2 years ago

It already worked after the commands, you indicated; that is

flatpak override net.jami.Jami --unset-env=QT_QPA_PLATFORM
flatpak override net.jami.Jami --unset-env=GDK_BACKEND

I'm on Debian Sid, Vanilla Gnome, so niente tray.