This reverts commit fb7e1302.
Developers have been trying to reduce the number of by default required
environment variables, and the mentioned commit is a step backwards in
that sense. The fundamental assumption is that a user has only one main
(Wayland) display server where all programs should connect to by
default, and do so with an a priori known socket name.
The commit also broke various use cases in the wild, some accidentally
due to other causes, some intentionally. This revert allows those use
cases to continue.
The original problem of running Weston in a window in an existing GNOME
X11 session and getting applications unintentionally launched into
Weston can be circumvented by letting Weston use a non-default socket
name, leaving wayland-0 unused.
Cc: Dima Ryazanov <firstname.lastname@example.org>
Cc: Giulio Camuffo <email@example.com>
Cc: Daniel Stone <firstname.lastname@example.org>
Cc: Jasper St. Pierre <email@example.com>
Cc: Ryo Munakata <firstname.lastname@example.org>
Cc: Ray Strode <email@example.com>
Cc: Peter Hutterer <firstname.lastname@example.org>
Cc: Matthias Clasen <email@example.com>
Cc: Sjoerd Simons <firstname.lastname@example.org>
Signed-off-by: Pekka Paalanen <email@example.com>
Acked-by: Ray Strode <firstname.lastname@example.org>
Acked-by: Dima Ryazanov <email@example.com>
Reviewed-by: Bryce Harrington <firstname.lastname@example.org>
Acked-By: Sjoerd Simons <email@example.com>
Acked-By: Ryo Munakata <firstname.lastname@example.org>
Acked-by: Peter Hutterer <email@example.com>