Get the latest tech news
Running Wayland Clients as Non-Root Users on Yocto
Many embedded Linux systems use a Wayland compositor like Weston for window management. Qt applications act as Wayland clients. Weston composes the windows of the Qt applications into a single wind…
However, this may break, if we figure out how to run Qt applications as other users than weston and root or if we use a relative path for the socket file given in WAYLAND_DISPLAY. As the socket file name may change, the Wayland client will eventually fail to start with the error message A good approach is to check the generated files in the work directory of the image recipe (e.g., b4-hmi-product-image) for the required changes.
Or read this on Hacker News