Hi,
I'm trying to launch a GUI application on my system (iMX8MM, Yocto Sumo) without root permissions.
When I login with my non-root user I have this situation:
- XDG_RUNTIME_DIR = /run/user/1000
- wayland-0 does not exists inside /run/user/1000
- When I try to open any gui aplication I get: failed to connect to Wayland display: No such file or directory
failed to create display: No such file or directory
The only way I've found to make it work is to chmod /run/user/0 and /run/user/0/wayland-0 and then set XDG_RUNTIME_DIR to /run/user/0. The problem is that the wayland-0 under /run/user/0 is not created until a user login (or at least it seems like that) so I cannot write a systemd service to chmod the directory and the file.
I don't think it is supposed to work this way, what do you think? How should I do it?
Thanks
Paolo Gentili