weston/compositor
Manuel Stoeckl ae69381b6e compositor: avoid setting WAYLAND_DISPLAY=wayland-0
This commit alters the way that Weston picks a Wayland display socket
name. Instead of using wl_display_add_socket_auto to look for the first
available name in wayland-0, wayland-1, .... to wayland-32, the code now
checks names wayland-1, wayland-2, .... up to wayland-32.

This change is a workaround for a suboptimal behavior of
libwayland-client. If a client program calls wl_display_connect(NULL) and
the WAYLAND_DISPLAY environment variable is not set, then the program will
by default try to connect to 'wayland-0'. This is a problem when a
computer has a running Wayland compositor but is being accessed in some
other fashion, such as through an X session on a different virtual
terminal, over ssh, etc. Client programs launched through those means may
attempt to connect to an unrelated compositor. Changing libwayland
behavior to remove the default would also work, but a) libraries have
stronger backward compatibility expectations b) that would likely break
more people's setups than just changing Weston would.

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
2020-09-15 11:03:18 +00:00
..
cms-colord.c Use weston_compositor_add_destroy_listener_once() in plugins 2019-11-21 16:32:55 +00:00
cms-helper.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
cms-helper.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
cms-static.c Use weston_compositor_add_destroy_listener_once() in plugins 2019-11-21 16:32:55 +00:00
executable.c compositor: turn weston main() into a lib 2019-10-24 13:40:51 +03:00
main.c compositor: avoid setting WAYLAND_DISPLAY=wayland-0 2020-09-15 11:03:18 +00:00
meson.build meson: enable undefined functions errors for colord 2020-06-03 11:00:21 +00:00
screen-share.c screen-share: don't get weston_config object before zalloc 2020-07-01 18:58:38 +09:00
systemd-notify.c Use weston_compositor_add_destroy_listener_once() in plugins 2019-11-21 16:32:55 +00:00
testsuite-util.c compositor: add test suite data 2020-01-30 10:10:34 +00:00
text-backend.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
weston-screenshooter.c weston-debug: Rename weston-debug to weston-log to better reflect its purpose 2019-07-18 10:49:39 +03:00
weston.desktop Remove dbus-launch from weston.desktop 2017-01-18 12:21:57 +00:00
weston.h compositor: add test suite data 2020-01-30 10:10:34 +00:00
xwayland.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00