Instead of checking a environment variable which may not actually exist or is just wrong, ask QT if it's running on the wayland platform.
Instead of checking a environment variable which may not actually exist or is just wrong, ask QT if it's running on the wayland platform.