D22049: pluginloader: Change behavior of X-KDE-ParentApp

Bhushan Shah noreply at phabricator.kde.org
Sun Jun 23 16:09:42 BST 2019


bshah created this revision.
bshah added reviewers: mart, apol.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
bshah requested review of this revision.

REVISION SUMMARY
  X-KDE-ParentApp is the key in desktop file to display that given service
  or application is part of the another application or extension of other
  application. In KDE4 this key was used to mark applets to be used in the
  specific application like plasma-desktop, kdevelop, amarok etc.
  
  In KF5 world, none of this applications have applet loading mechanism
  apart from plasma*, and there are likely only Plasma applet, containment
  or dataengines.
  
  Previous API, when no/empty parentApp was passed would filter out every
  application which had something as parentApp. This was to ensure only
  compatible plugins are loaded in Plasma. This resulted in applets
  getting excluded if they suggested that org.kde.plasmashell is their
  parent application. Refine this API to,
  
  - If no/empty parentApp is provided, provide all applets
  - If parentApp is provided, filter by applet
  
  This behavior is more filter like instead of other way around.
  
  CHANGELOG: Applet, DataEngine and containment listing methods in
  Plasma::PluginLoader no longer filters the plugins with X-KDE-ParentApp
  provided when empty string is passed.

TEST PLAN
  tested that plasma loads properly, plasmaengineexplorer lists
  all engines and plasmawindowed works fine. Neverthless requires more testing

REPOSITORY
  R242 Plasma Framework (Library)

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D22049

AFFECTED FILES
  src/plasma/pluginloader.cpp
  src/plasma/pluginloader.h

To: bshah, mart, apol
Cc: kde-frameworks-devel, LeGast00n, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190623/1850430f/attachment.html>


More information about the Kde-frameworks-devel mailing list