KFileItemActions: Add API for service menu keyboard shortcut

This draft MR is intended to be tested in combination with system/dolphin!1167 (merged).

  • Add createServiceMenuActions(), which scans all service menu actions. It is to be used with KActionCollection.
  • Shortcut-triggered actions are validated in slotExecuteService at runtime
  • createActionForService extracted from insertServices to avoid code duplication

Known issues:

  • Lack of caching. During the execution only the action that gets called is getting its .desktop file parsed again, so caching may not be needed. Caching all service menu actions will cost some RAM as well.
Edited by Albert Mkhitaryan

Merge request reports

Loading