Load KFileItemAction plugins with json metadata
Review Request #128088 - Created June 3, 2016 and submitted
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/kf5/kioor something else? This way we could tell Dolphin to only look for plugins within that subfolder (instead of checking every plugin in
- Build Ark master after commit c369264d6c
- 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_pluginis not shown twice in the context menu
Like $QT_PLUGIN_PATH/kf5/kio or something else?
Actually this subfolder seems to be reserved for the kioslave plugins. Maybe something like
$QT_PLUGIN_PATH/kf5/kio_fileitemaction? This would be consistent with
KIO::DndPopupMenuPluginplugins are supposed to be installed.
Ark's patch has been merged on master.