I've Googled around, but can't seem to find any consistent tutorials or documentation that describe how to do this (in my case, on Kubuntu 15.10). I want to add custom scripts to the context menu in Dolphin (a la nautilus-scripts for Nautilus). For some reason, when I follow any instructions I find, I'm only able to make the context menu appear when right-clicking the relevant .desktop file. How can I solve this?

share|improve this question

KDE Service Menus

In KDE-speak a "servicemenu" is a special entry that appears in a context menu (or other context-based interface) for a file (or for directory), depending on the type of files that are selected.

Creating (Konqueror) KDE Service Menus: https://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus

Service Menus with Dolphin: https://www.kubuntuforums.net/showthread.php?25740-Service-Menus-with-Dolphin --> KF5 Service Menus: https://www.kubuntuforums.net/showthread.php?25740-Service-Menus-with-Dolphin&p=367207&viewfull=1#post367207

Service Menus Missing: https://forum.kde.org/viewtopic.php?f=223&t=128621

share|improve this answer
    
Please add the relevant part of the answer here and provide the links only for reference. – Anwar Jun 16 '17 at 13:57

The following worked for me on Ubuntu 16.04

place the scripts in the directory ~/.local/share/kservices5/ServiceMenus/

run kbuildsycoca5

scripts will be visible in new dolphin instances.

share|improve this answer

On Ubuntu 16.04 with KDE (Kubuntu) one appropriate directory for *.desktop files is /usr/share/kservices5/ServiceMenus/

(compare the output of dpkg -L ark to find similar file locations concerning the ark submenus)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.