<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-utils detectDE() fails to handle XDG_CURRENT_DESKTOP properly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98680">98680</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-utils detectDE() fails to handle XDG_CURRENT_DESKTOP properly
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>1.1.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>xdg-utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mcatanzaro@gnome.org
</td>
</tr></table>
<p>
<div>
<pre>$XDG_CURRENT_DESKTOP is a list, not a single value. It could be, for instance,
Endless:GNOME or Unity:GNOME, something like that. In cases like these,
detectDE() in xdg-utils-common.in fails to parse $XDG_CURRENT_DESKTOP properly,
since it's only expecting one single value.
This is not really a serious issue now because detectDE() has a fallback to
check $GNOME_DESKTOP_SESSION_ID, but that variable is always set to
this-is-deprecated nowadays and could conceivably disappear in the future. That
could break desktop detection in desktops that want to be treated as GNOME by
xdg-utils. It'd probably be a good idea to use a glob to see if GNOME (or any
other desktop) appears anywhere in the list in the case statement at the start
of detectDE() to avoid this.</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>