Prerequisites to Starting Weston

Weston creates its Unix socket file, for example wayland-0, in the directory specified by the required environment variable $XDG_RUNTIME_DIR. $XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc.) are stored.

Check whether the $XDG_RUNTIME_DIR environment variable is set, if it is not set please set it as follows.