[Cantor] Port plugin load mechanism to new KDE Frameworks 5 way

Review Request #124168 - Created June 24, 2015 and submitted

Filipe Saraiva
apol, arieder, sebas

There is a new way to load plugins in KDE Frameworks 5 way. I ported Cantor plugins support to it. Now Cantor is using K_PLUGIN_FACTORY_WITH_JSON, the plugin path is the same of Qt5 ($QT_PLUGIN_PATH) and different types of Cantor plugins are installed in different subdirectories (backends in backends in ${KDE_INSTALL_PLUGINDIR}/cantor/backends, assistants in ${KDE_INSTALL_PLUGINDIR}/cantor/assistants, and panels in ${KDE_INSTALL_PLUGINDIR}/cantor/panels). KPluginInfo was changed to KPluginMetaData too.

To do it I followed the documentation and this post about KDE Frameworks 5 plugins by sebas.

  • Build ok;
  • The plugins are loaded correctly;
  • Select some backend and see the Cantor loading assistants and panels;
  • Utilized some assistants, panels and backends, looks like correct.


  • 1
  • 4
  • 0
  • 5
Description From Last Updated
I would like to get some tips about how to port that kcoreaddons_desktop_to_json to the new way. How I change ... Filipe Saraiva Filipe Saraiva
Filipe Saraiva
Aleix Pol Gonzalez
Filipe Saraiva
Filipe Saraiva
Aleix Pol Gonzalez
Filipe Saraiva
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 6880e168071f996e386bb457783cde95c20135d2 by Filipe Saraiva to branch master.