<table><tr><td style="">sitter created this revision.<br />sitter added a reviewer: broulik.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29506">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>previously we'd simply query for an Exec that contains the primary query<br />
word. that is actually fairly unreliable because that will also match<br />
on env vars, arguments and the like which then has opportunity to produce<br />
false positives.</p>
<p>notably examples is the konversation flatpak which matches 'ding' because<br />
it has a --forwarding argument in the Exec line and then even gets a<br />
relevance bump because it is a KDE application, so suddenly it outscores<br />
the actual ding application.</p>
<p>to deal with this some rejiggering is necessary. we now query for potential<br />
Exec matches in its own query so we can tell which services are general<br />
matches and which are Exec matches. we'll then reduce the exec matches<br />
down to the ones that aren't already service matches AND where the actual<br />
executable name contains the primary query.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>test passes, konversation is no longer reported as match for 'ding' in kickoff</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29506">https://phabricator.kde.org/D29506</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/services/autotests/fixtures/ding.desktop<br />
runners/services/autotests/fixtures/flatpak_org.kde.konversation.desktop<br />
runners/services/autotests/servicerunnertest.cpp<br />
runners/services/servicerunner.cpp</div></div></div><br /><div><strong>To: </strong>sitter, broulik<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>