Review Request 128088: Load KFileItemAction plugins with json metadata

Elvis Angelaccio elvis.angelaccio at kdemail.net
Fri Jun 3 14:27:54 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128088/
-----------------------------------------------------------

Review request for Dolphin and KDE Frameworks.


Repository: dolphin


Description
-------

Dolphin currently doesn't support JSON-only KFileItemAction plugins (without a .desktop file).
This patch adds support for them both in the context menu and in the settings dialog (Services pane).

Since a plugin can have both a .desktop file and JSON metadata (as is the the case for `kactivitymanagerd_fileitem_linking_plugin`), we need to be sure to not add twice the plugin in the context menu. A QSet is used to prevent this issue.

Open question: do we want to install these json-only plugins in a specific subdirectory of `$QT_PLUGIN_PATH`? Like `$QT_PLUGIN_PATH/kf5/kio` or something else? This way we could tell Dolphin to only look for plugins within that subfolder (instead of checking every plugin in `$QT_PLUGIN_PATH`).


Diffs
-----

  src/dolphincontextmenu.cpp dfec76144dafd9210aa8b6f45458ded98e27ab53 
  src/settings/services/servicessettingspage.cpp 4cfa2327c9fa77a6124b4d90040a9784cc8180c5 

Diff: https://git.reviewboard.kde.org/r/128088/diff/


Testing
-------

* Apply https://phabricator.kde.org/D1761 to Ark master
* Make sure that the Compress and Extract service menus are shown
* Make sure that the menus above can be enabled/disabled in the Services pane in the settings
* Make sure that `kactivitymanagerd_fileitem_linking_plugin` is not shown twice in the context menu


Thanks,

Elvis Angelaccio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160603/1be41fb8/attachment.html>


More information about the Kde-frameworks-devel mailing list