I just couldn’t believe this was easy as following this recipe: Konqueror Services Menus
I wanted to be able to edit any file without having an editor associated to that all kind of files. So here’s the result:
[Desktop Action editAllFiles]
Name=Edit with emacs
I’ve placed this file inside
and konqueror immediately used it. Now every time i right click on a file there is a entry called “Edit with emacs” after the emacs icon.
Now i can open any file even if there isn’t a application associated to it or if it already has one, the file is run by that application.
X-KDE-Priority=TopLevel is to put the entry right on the first menu, otherwise it appears as subsection of the main entry “Actions”.
I just can’t believe how easy this is and how i’ve been delaying this for ages! Isn’t KDE great? :D