Help.for create right click service menu desktop!

Hi
i create this script “*.desktop” and work

[Desktop Entry]
Type=Service
MimeType=application/octet-stream;
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
Actions=Shred_file
MimeType=all/allfiles;
X-KDE-Submenu=Wipe_optoin
X-KDE-StartupNotify=false
X-KDE-Priority=TopLevel
[Desktop Action Shred_file]
Name=Shred Files 5 times
Icon=waiting


Exec=wipe -rf -v  -p5 %F 

but
I want add dialog box “yesno” if press “yes” run command if press “no” or close box not run command
how to add?
Thanks

No one to help

For showing a Yes/No dialog, you can use kdialog:

kdialog --yesno "Really?"

Create a script that calls kdialog and then runs your stuff depending on the return code, and then run that in the Exec line instead of “wipe” directly.

Something like this should work in your case:

if `kdialog --yesno "Really?"`
 then
  # user selected "Yes"
  wipe -rf -v  -p5 %F
fi

You could even wrap this into one line and put it into the Exec directly.
This should work, but I haven’t tried it:

Exec=if `kdialog --yesno "Really?"`; then wipe -rf -v  -p5 %F; fi

Thank you very much. for help me