Have Weston export WAYLAND_DISPLAY to all sessions of the root user
Hi there,
I do my embedded programming on a small system with only root, and I run/debug my programs via SSH, so everytime I run a Wayland program from an SSH session I have to do:
WAYLAND_DISPLAY=wayland-1 <path_to_program>
So, is there a way to have Weston export the WAYLAND_DISPLAY env variable to every session of an user? By default, according to the docs, WAYLAND_DISPLAY is only exported to the child processes.
I believe it's a general misunderstanding from my side in that exporting an env variable to all sessions isn't an specific Weston thing (it would be the work of PAM on a system with systemd, which is not the case) but maybe Weston has a way around it.