Comment 25 for bug 1589215

Khurshid Alam (khurshid-alam) wrote :

According to https://community.ubuntu.com/t/testing-unity-session-in-18-04/987/257,

LO is not detecting XDG_CURRENT_DESKTOP properly.

Editing exec line in .desktop seems to solve the problem.

Exec=env XDG_CURRENT_DESKTOP=Unity libreoffice --writer %U

Since it works on Ubuntu 16.04, I guess something went wrong in detecting Unity. Note Unity changed XDG_CURRENT_DESKTOP from Unity to Unity:Unity7:ubuntu after 16.10.