<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - get_desktop_environment() doesn't work correctly if $XDG_CURRENT_DESKTOP contains a colon-separated list of strings"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119881#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - get_desktop_environment() doesn't work correctly if $XDG_CURRENT_DESKTOP contains a colon-separated list of strings"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119881">bug 119881</a>
from <span class="vcard"><a class="email" href="mailto:olivier.tilloy@canonical.com" title="Olivier Tilloy <olivier.tilloy@canonical.com>"> <span class="fn">Olivier Tilloy</span></a>
</span></b>
<pre>This bug was initially reported in Ubuntu:
<a href="https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1589215">https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1589215</a>.
According to the FreeDesktop Desktop Entry Specification¹, $XDG_CURRENT_DESKTOP
may contain a colon-separated list of strings.
The code in
<a href="https://github.com/LibreOffice/core/blob/master/vcl/unx/generic/desktopdetect/desktopdetector.cxx#L248">https://github.com/LibreOffice/core/blob/master/vcl/unx/generic/desktopdetect/desktopdetector.cxx#L248</a>
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).
¹
<a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html">https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>