NVIDIA, KDE Plasma Wayland: Flatpak apps only launch as XWayland

Following the generally successful NVIDIA driver setup from this post

(Titan X, stable driver, KDE Plasma 6 Wayland only).

I have a working Wayland session and everything seems flawless. But flatpaks dont launch at all if they should use Wayland.

com.usebottles.bottles 
23:27:09 (ERROR) Unable to load libGLX_nvidia.so.0 
23:27:09 (WARNING) Unable to locate libGLX_nvidia 
23:27:09 (INFO) Launching with URI: None 
23:27:09 (INFO) [Activate] request received. 
23:27:09 (INFO) Bottles Started! 
libEGL warning: pci id for fd 27: 10de:17c2, driver (null)

pci id for fd 28: 10de:17c2, driver (null)
pci id for fd 15: 10de:17c2, driver (null)
libEGL warning: egl: failed to create dri2 screen
pci id for fd 27: 10de:17c2, driver (null)
pci id for fd 28: 10de:17c2, driver (null)
libEGL warning: egl: failed to create dri2 screen

Changing the permissions to remove Wayland and only allow X11, they launch fine with XWayland.

Anyone know this issue? It only happens for Flatpaks, all other apps seem fine

Have you tried rebooting, and then updating your flatpaks with flatpak update?

In general, when using nvidia, always reboot after updates/kernel/driver changes, and flatpak update after the reboot.

Flatpak downloads a separate set of nvidia userspace libraries depending on what driver it detects you running. It’s possible that wayland clients end up calling into a different chain of drivers than their X11 versions, resulting in this.

It was a bug with the nvidia 470 driver. The current “latest” gives another error but apps launch regardless