<table><tr><td style="">sitter created this revision.<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/D19788">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Desktop files such as kde/foo.desktop are identified as kde-foo.desktop<br />
because of the menu spec</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">If the directory contains sub-directories then these sub-directories should be (recursively) scanned as well. The name of the subdirectory should be added as prefix to the desktop-file id together with a dash character ("-")</pre></div>

<p>the runner therefore broadly assumed that kde-foo.desktop is always<br />
the desktop file kde/foo.desktop and since kde/ was only used up to KDE3<br />
this assumption formed the basis for sepcial KDE3 compat handling. that is<br />
of course wrong because a service might just as well actually have a<br />
prefix and be actually called kde-foo.desktop rather than<br />
kde/foo.desktop. Specific example: kde-gtk-config.desktop</p>

<p>seeing as this is ancient compatibility code that is actually wrong,<br />
the easiest solution seems to be dropping the code entirely (and thus no<br />
longer assume kde- has some special meaning).</p>

<p>(also I didn't find a way to get the underlying filename of a kservice,<br />
 so making the code not wrong seems non-trivial)</p>

<p>CHANGELOG: the GTK+ settings module now correctly appears in krunner and kickoff</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>gtk kcm correctly shows up in both kickoff and krunner searches</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.15</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19788">https://phabricator.kde.org/D19788</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/services/servicerunner.cpp</div></div></div><br /><div><strong>To: </strong>sitter<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>