how to check session type in linyx wayland ort x11 code example Example: how to check if am using wayland echo $XDG_SESSION_TYPE