Help dolphin service menus

Hi
i find this add-on for dolphin and copy this path(/home/~/.local/share/kservices5/ServiceMenus) but not show in the right click menu
i installed app “srm” too


[Desktop Entry]
Encoding=UTF-8
Actions=Secure_remove;
Icon=clanbomber
ServiceTypes=all/allfiles
ExcludeServiceTypes=kdedevice/*

[Desktop Action Secure_remove]
Exec=`kdialog --caption "Secure Delete" --menu "Choose how:" "rm" "Delete only" "srm -l" "Fast and unsecure" "srm -f" "Slow and more secure" srm "Very slow and very secure"` %U
Icon=clanbomber
Name=Delete file(s) DEFINITELY!
Name[it]=Distruggi il file DEFINITIVAMENTE!

Does anyone know the problem?
Thanks

This might answer your question
https://forum.kde.org/viewtopic.php?f=67&t=126244

Oops…misread your post.

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

Thanks
I mean the problem is that the script
Is not true,It was written for the old version and should be rewritten for new version dolphin
not show in the right click because The secure_delete.desktop has problems
Does anyone know the problem?

Could you try to put the script into this folder,

~/.local/share/kservices5/

because I don’t know if it works in a subfolder to the working paths shown by

$ kf5-config --path services

Sorry, I tried and found it does works in subfolders.

Then, I made some changes to your code and now this works for me (not the function but the service menu showing in the right click menu of Dolphin),

[Desktop Entry]
Encoding=UTF-8
Actions=Secure_remove;
Icon=clanbomber
ServiceTypes=all/allfiles
ExcludeServiceTypes=kdedevice/*
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/allfiles

[Desktop Action Secure_remove]
Exec=`kdialog --caption "Secure Delete" --menu "Choose how:" "rm" "Delete only" "srm -l" "Fast and unsecure" "srm -f" "Slow and more secure" srm "Very slow and very secure"` %U
Icon=clanbomber
Name=Delete file(s) DEFINITELY!
Name[it]=Distruggi il file DEFINITIVAMENTE!

Thank you
It works for me

I’m glad it helps. I happened to make a service menu a while ago.