D19788: [service runner] throw out kde3 "compat" code for KCMs
Harald Sitter
noreply at phabricator.kde.org
Fri Mar 15 14:47:26 GMT 2019
sitter created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.
REVISION SUMMARY
Desktop files such as kde/foo.desktop are identified as kde-foo.desktop
because of the menu spec
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 ("-")
the runner therefore broadly assumed that kde-foo.desktop is always
the desktop file kde/foo.desktop and since kde/ was only used up to KDE3
this assumption formed the basis for sepcial KDE3 compat handling. that is
of course wrong because a service might just as well actually have a
prefix and be actually called kde-foo.desktop rather than
kde/foo.desktop. Specific example: kde-gtk-config.desktop
seeing as this is ancient compatibility code that is actually wrong,
the easiest solution seems to be dropping the code entirely (and thus no
longer assume kde- has some special meaning).
(also I didn't find a way to get the underlying filename of a kservice,
so making the code not wrong seems non-trivial)
CHANGELOG: the GTK+ settings module now correctly appears in krunner and kickoff
TEST PLAN
gtk kcm correctly shows up in both kickoff and krunner searches
REPOSITORY
R120 Plasma Workspace
BRANCH
Plasma/5.15
REVISION DETAIL
https://phabricator.kde.org/D19788
AFFECTED FILES
runners/services/servicerunner.cpp
To: sitter
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190315/3ecaeba5/attachment.html>
More information about the Plasma-devel
mailing list