KiCad does not work natively on Wayland
This is a ticket to track support for running KiCad natively on Wayland-based desktops, ie. without using the XWayland shim layer. Currently this is blocked upstream by wxWidgets, however it looks like support for this was merged into wx on Sept 1st, 2020 and is targeted at the 3.1.5 wxWidgets release milestone.
Steps to reproduce
Currently Kicad will override the user's env to set GDK_BACKEND=x11 even if the user specifies GDK_BACKEND=wayland. Once this is removed, a similar check in wx will fail, and the binary will segfault. eg
Fatal Error: wxGLCanvas is only supported on X11 currently. You may be able to work around this by setting environment variable GDK_BACKEND=x11 before starting your program. zsh: segmentation fault (core dumped) ./eeschema
There may be other checks/workarounds that will need to be removed/fixed.
Tested on Arch Linux on Wed, Jan 20, 2021, with KiCad 5.1.9-1 and wxgtk3 126.96.36.199-2