Qt5 的 QPA 无法连接到我的显示器?

Qt5 的 QPA 无法连接到我的显示器?

我正在尝试启动 Garuda Boot Manager 并得到以下信息:

qt.qpa.xcb: could not connect to display :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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

这很奇怪,因为其他 Qt 应用程序运行正常。这是提升权限的方式的问题吗?我似乎无法让它工作……

我使用的是 Wayfire,它只能在 Wayland 上运行,并配备适用于我 MacBook 的旧款 GT 350M 的 Nouveau 驱动程序。这可能是问题所在吗?

答案1

不确定 Xwayland 和 xcb 对此有什么看法,但我通过将程序执行的 QT_QPA_PLATFORM 环境变量设置为其他变量之一(“wayland”)来解决问题

相关内容