Revert "client: require WAYLAND_DISPLAY to be set"
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. Discussion: http://lists.freedesktop.org/archives/wayland-devel/2015-August/023927.html http://lists.freedesktop.org/archives/wayland-devel/2015-August/023937.html Cc: Dima Ryazanov <email@example.com> Cc: Giulio Camuffo <firstname.lastname@example.org> Cc: Daniel Stone <email@example.com> Cc: Jasper St. Pierre <firstname.lastname@example.org> Cc: Ryo Munakata <email@example.com> Cc: Ray Strode <firstname.lastname@example.org> Cc: Peter Hutterer <email@example.com> Cc: Matthias Clasen <firstname.lastname@example.org> Cc: Sjoerd Simons <email@example.com> Signed-off-by: Pekka Paalanen <firstname.lastname@example.org> Acked-by: Ray Strode <email@example.com> Acked-by: Dima Ryazanov <firstname.lastname@example.org> Reviewed-by: Bryce Harrington <email@example.com> Acked-By: Sjoerd Simons <firstname.lastname@example.org> Acked-By: Ryo Munakata <email@example.com> Acked-by: Peter Hutterer <firstname.lastname@example.org>
Showing with 11 additions and 12 deletions