Create New Template Service Menu is a context menu item for KDE and Konqueror that automates adding Create New... menu entries from existing files. It adds a "Create Template" item to the Actions submenu of the context menu. It consists of a service menu .desktop file and a shell script.
KDE Create New Template Service Menu
This service menu removes the hassle of hand-coding Create New... menu entries. It is accessed by right-clicking regular file icons on the desktop or in Konqueror, pointing to Actions, and selecting Create Template.
It consists of a service menu .desktop file and a Bash shell script. The Create Template service menu runs a shell script that brings up two dialogs--one for choosing an icon to associate with the Create New... menu entry, and the other for entering the menu item text itself. It uses this information to write a Create New... menu item .desktop file. The shell script bases the name of the .desktop file on the name of the document file clicked on from the desktop and places a copy of the file in the .sources subdirectory of ~/.kde/share/templates.
The service menu should be placed in ~/.kde/share/apps/konqueror/servicemenus and the shell script in ~/bin.
I suggest that users first install the Simple Service Menu Installer available from http://www.kde-apps.org/content/download.php?content=23760&id=1. That service menu provides the same service for installable service menus that mine does for document templates and will greatly simplify the process of installing this service menu. After downloading that service menu just right-click on it, point to Actions, point to Install Service, and click one of the options available on the submenu. Then to install my service menu, just follow the same proceedure and place the shell script in your personal ~/bin directory.
From that point on you will have a nice, simple method of adding both installable service menus and templates to the KDE context menu.
This project is released under the terms of the GNU GPL v.2.0.
What's New in This Release:
· Changed menu icons to more appropriate ones.