Support qt6 natively on wayland with Plasma
Description:
On KDE Plasma (Wayland), setting the Chrome "Preferred Ozone platform" flag to "Wayland" or "Auto" causes the browser to crash on launch with the following error:
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
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, xcb.
Aborted (core dumped)
I have tested this on a clean KDE Plasma install. The flag works fine on Gnome.
Additional info:
Installing the package qt5-wayland
resolves this issue.
Steps to reproduce:
- Set chrome://flags/#ozone-platform-hint to "auto" or "Wayland"
- Start chromium on Plasma (Wayland)