![]() Registered Member ![]()
|
I try to make a small plugin/extension for konqueror to organize some media files. The main purpose of it is to save some file specific information from file into a database.
My plugin already displays a toolbar in konqueror for the user to enter some properties/values. Now I want to link this information to the current selected or opened file. I already found an example (kshellcmdplugin) to get the name and location of the currently selected file, but the problem is that this only seems to work when the plugin is installed as a dolphinpart plugin (under: ~/.kde4/shareapps/dolphinpart/kpartplugins/). I want this plugin to be also available when konqueror displays a picture (via some embedded viewer). To make my plugin also available in that last case, I need to install it as a konqueror plugin (under ~/.kde4/share/apps/konqueror/kpartplugins/), but then it does not seems to have any reference to the file list browser (the dolphinpart part). So the main question is: How to get pathname the current selected or opened(/viewed) file by konqueror inside my plugin? This code works to get all the selected files (when the .rc and .desktop files are installed in: ~/.kde4/shareapps/dolphinpart/kpartplugins/):
thanks in advance |
![]() Administrator ![]()
|
While I can't answer the Konqueror specific part of the question - you probably will require two plugins here, which work in unison together to provide the functionality you need. One part to write, another to display the information.
In regards to the Konqueror / KParts API, I would suggest asking on the kde-devel@kde.org mailing list.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Ok, thanks for your time and advice. I will look further at the mailing list.
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]