Description
While we've been checking if XDG_SESSION_TYPE environment variable is wayland or not to check whether the ibus-mozc is running under Wayland session or not for long time since 2d39bb4 for #431, it seems that XDG_SESSION_TYPE is just a convention invented by systemd forks, and may not be set.
Let's use WAYLAND_DISPLAY instead for simplicity and better compatibility.
Version or commit-id
89c7008
Environment
- OS: Linux all
- IMF: Only affects ibus-mozc