![]() Registered Member ![]()
|
How can I add new items in the Dolphin's context menu -> Create New. Such as .odt file.
|
![]() Manager ![]()
|
I'm pretty sure the "create new" is hard coded, what you'd want to do was to create a new service menu which would add a new item displayed when you right click in Dolphin. This tutorial should help http://techbase.kde.org/Development/Tut ... vice_Menus as might this service menu editor http://www.sharpley.org.uk/node/3
|
![]() Registered Member ![]()
|
Well, on my system (openSUSE 12.3) I DO have .odt in there. But you can add new ones. See below.
The service menu is something different. And the entries in "Create New" are NOT hardcoded. The templates in the "Create new" context menu are located in /usr/share/kde4/templates/ (on openSUSE at least, this may be slightly different on other distributions). Just add your own file there (take an existing one as template) and it should appear in that context menu immediately. |
![]() Registered Member ![]()
|
You can also use the folder ~/.kde4/share/templates/ (or, depending on the distribution, ~/.kde/share/templates/) in your home directory. Use " kde4-config --path templates" to find out which folders are respected on your system. |
![]() Manager ![]()
|
http://kde-apps.org/content/show.php?content=123189 |
![]() Registered Member ![]()
|
Just to say, in KDE Kubuntu 4.13.1, the directory to use for pasting /templates is ~ /.kde/share/
|
![]() Administrator ![]()
|
To determine the appropriate directory on any system, you can use the following command:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], rockscient, Yahoo [Bot]