Page MenuHome

Fix Wayland warning on startup when running X11
ClosedPublic

Authored by Brecht Van Lommel (brecht) on Oct 17 2022, 3:29 PM.

Details

Summary

On Ubuntu 20.04 running X11, there is this message on every Blender startup:
Unable to find 'wl_proxy_marshal_flags' in 'libwayland-client.so.0'.

The reason is that we build against Wayland protocols 1.21, which in turns requires
Wayland on the distribution to be 1.21+, which is not the case on Ubuntu 20.04.

This simply silences the warning. An improvement would be to explain the user that
their Wayland version is too old when neither X11 or Wayland can be found. Though
that's not trivial and a situation with old Wayland and no XWayland seems unlikely
to happen in practice, so I did not bother.

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested review of this revision.Oct 17 2022, 3:29 PM
Brecht Van Lommel (brecht) created this revision.

I looked into this a bit more and update the description, personally I think the patch is fine as is.

This revision is now accepted and ready to land.Nov 3 2022, 12:33 PM