Error running some applications under wayland

I tried running Flatpak versions of emulators Ares, Dolphin, Pcsx2, Duckstation on Wayland on TW 15.6 and I get this error

qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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: minimal, offscreen, vkkhrdisplay, vnc, xcb, wayland, wayland-egl.

Only way to launch is via kdesu, but then there is no access to any extra folders, making the applications unusable

libxcb-cursor0 is installed. Tried adding qt platform and export display parameters, same issue.

You do not run applications “under Wayland”. You run applications under Wayland compositor which is usually part of some desktop environment, but may be standalone (like Weston). So, you need to start with telling what desktop environment or compositor you are using.

I use Plasma on Wayland but it also happens under Gnome on Wayland

@petran79 if you export QT_QPA_PLATFORM=wayland-egl or use flatseal to add to environment variables, does that help?

1 Like

now that I checked flatseal, it had added the qt_qpa_platform=xcb to the parameters. Removed it and at least those apps launch now.
Ares gives a gtk warning cannot open display, but no big deal

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.