From 5feee11e43a0907306db1df993cf1cd11c8596d9 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 30 Dec 2019 15:22:02 -0600 Subject: wayland: disable by default for gnome It turns out that gnome wayland still has very serious issues that make it unusable for playback with mpv. Other compositors mostly behave fine (Plasma is just missing feature but it's not seriously broken), so GNOME gets the special honor of having a warning printed out. The only solution for GNOME users at this time of writing is to either use the Xorg session or use another wayland compositor. --- video/out/wayland_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index e4ea6d3687..5a9a7115d1 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1110,6 +1110,10 @@ int vo_wayland_init(struct vo *vo) if (create_xdg_surface(wl)) return false; + const char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP"); + if (xdg_current_desktop != NULL && strstr(xdg_current_desktop, "GNOME")) + MP_WARN(wl, "GNOME's wayland compositor is known to have many serious issues with mpv. Switch to GNOME's xorg session for the best experience.\n"); + if (wl->dnd_devman && wl->seat) { wl->dnd_ddev = wl_data_device_manager_get_data_device(wl->dnd_devman, wl->seat); wl_data_device_add_listener(wl->dnd_ddev, &data_device_listener, wl); -- cgit v1.2.3