Could not find the Qt platform plugin "wayland" in "" , Could not load the Qt platform plugin "xcb" in "" even though it was found

I’ve always somewhat had that issue, which endured at least three installations in totla (so not a problem with my confniguration):
qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “”
qt.qpa.xcb: could not connect to display

but now for more than one program, it doesn’t load at all, because of that:
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
Complete message:

Summary

$ ./kdenlive-21.12.1-x86_64.appimage
qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “”
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: xcb.

/tmp/.mount_kdenli4GpeEr/AppRun : ligne 42 : 42513 Abandon (core dumped)kdenlive --config kdenlive-appimagerc $@

It concerns specifically the appimage version. the one from repositories does open… then crash, coredump.
There’s something wrong with either the archlinux base system, or QT: I tried the method with changing QT plugin path, it didn’t work.

That is a pretty common issue. It could be a problem with the appimage itself or could be something missing/wrong in your environment.

Which DE/WM are you using? A you running under wayland or X?

I have a similar issue on Sway (Wayland with xwayland enabled) and the ksnip AppImage:

> ~ $ ksnip-1.9.2-x86_64.AppImage /path/to/file
Warning: Could not find the Qt platform plugin "wayland" in ""
Fatal: 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.

Aborted (core dumped)
> ~ $ 

Using QT_QPA_PLATFORM=xcb ksnip-1.9.2-x86_64.AppImage /path/to/file worked (based on this post).

1 Like

I use sway, on wayland though I can switch on lxde too.
on this one kdenlive worked. I realized that the behavior was erratic, hard to reproduce.
But that aside I wish that nominally wayland-native applications could do without xwayland/xcb, so the first issue, chronologically, stays.