Comment 7 for bug 1965113

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It looks like the presence of environment $WAYLAND_DISPLAY should work.

You can't rely on $DISPLAY to detect X11 because that exists in both Xorg and Wayland sessions thanks to Xwayland.