Registered Member
|
I have a couple of tools, that are quite handy for file browsing.
I would like to add new menu items to Konqueror's Tools menu. Any ideas how to do it the simple way? |
Registered Member
|
Does the simple way can include recompiling KDE (you are a gentoo user, it might not be that hard )? KXMLGuiWindow have some limits, you can't "create" new functions using it.
You will have to read the KDE developpement tutorial available in wiki.kde.org and add few new KActions and function calling your tools. If they are external programs or script, the easy way is using the system() function with a ' &' at the end (if you don't add &, konqueror will freez until the command end). The clean way would be to fork and use execvp, it is a little more complicated (but faster).
Elv13, proud KDE user since KDE 2.2.
|
Administrator
|
Note that using QProcess::startDetached is the correct method for running external applications in that manner, not using system().
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thank you for replies.
I thought about creating an extension, but I wanted to make sure, there are no easier ways to do it. |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]