<div>sitter created this revision.<br />
sitter added a reviewer: hein.<br />
Restricted Application added a project: Plasma.<br />
Restricted Application added a subscriber: plasma-devel.</div><br /><div><strong>REVISION SUMMARY</strong><div><p>When no match can be made from classClass, attempt a fallback where we<br />
match any DesktopEntryName that contains classClass and drop all that<br />
do not end with '.$classClass' (i.e. ones that certainly are not using<br />
reverse-domain-name notation. classClass is usually the appname, but<br />
without RDN.<br />
So, when a RDN using application cannot be matched directly (i.e. its<br />
classClass is different from its binary name) we'd end up with an<br />
unsuccessful mapping and use the binary-path as launcherUrl. To improve<br />
on this when that case occurs we now attempt to loosely find a single<br />
matching RDN desktop file and prefer that over the binary fallback match.</p>
<p>Illustrative example:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">org.kde.dragonplayer.desktop</li>
<li class="remarkup-list-item">binary is 'dragon'</li>
<li class="remarkup-list-item">qapp appname and thus classClass is 'dragonplayer'</li>
<li class="remarkup-list-item">classClass cannot directly match the desktop file because of RDN</li>
<li class="remarkup-list-item">classClass also cannot match the binary because of name mismatch</li>
<li class="remarkup-list-item">now *.classClass can match org.kde.dragonplayer though</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix/taskmanager-rdn-lookup</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1447" rel="noreferrer">https://phabricator.kde.org/D1447</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libtaskmanager/taskitem.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>sitter, hein<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>