(In reply to Cor Blom from comment #8) > (In reply to Fabian Vogt from comment #6) > > I tried it and got greeted with the plain X11 VCL. > > However, with SAL_USE_VCLPLUGIN=kde5 libreoffice it works absolutely fine > > (and natively on wayland as well). > > So it seems like the autodetection is screwed up somehow. > > On my system autodetection works fine. Confirmed to be caused by WAYLAND_DISPLAY set in the environment. It defaults to GNOME and ignores other checks in that case: https://github.com/LibreOffice/core/blob/293526165fcd236ba1742de2feec6ea06376e83f/vcl/unx/generic/desktopdetect/desktopdetector.cxx#L283