[Libreoffice-bugs] [Bug 119881] get_desktop_environment() doesn't work correctly if $XDG_CURRENT_DESKTOP contains a colon-separated list of strings

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 14 14:53:50 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=119881

--- Comment #1 from Olivier Tilloy <olivier.tilloy at canonical.com> ---
This bug was initially reported in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1589215.

According to the FreeDesktop Desktop Entry Specification¹, $XDG_CURRENT_DESKTOP
may contain a colon-separated list of strings.

The code in
https://github.com/LibreOffice/core/blob/master/vcl/unx/generic/desktopdetect/desktopdetector.cxx#L248
doesn't handle that well, as it tries to match (case-insensitive) on the whole
value of the variable.

This results in the desktop not being properly detected in instances where
XDG_CURRENT_DESKTOP = "ubuntu:GNOME" (which is the case in Ubuntu 18.04).


¹
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180914/2141e89f/attachment.html>


More information about the Libreoffice-bugs mailing list