Snap do not run run with error "Could not load the Qt platform plugin “xcb” "

Hello! I have another problem with my snap(. It does not run with this error: " qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/snap/master-pdf-editor-5/x1/lib/x86_64-linux-gnu/qt/plugins/platforms” 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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb."

However, libqxcb is installed. I try to run on Kubuntu 24.04 and Debian 12.

The problem is solved by building app with snapcraft version 7.5.8.

These infos may help: https://snapcraft.io/docs/qt5-kde-applications

I made a snap with that, it’s Chaotica2trial. You can install it then look at the .YAML into /snap/chaotica2trial/…

2 Likes