![]() Registered Member ![]()
|
Hi,
I've developed a simple kioslave as in the hello world tutorial, and I've succesfully installed and run. Now I changed the get method to return a different set of data than "Hello world", I uninstalled the old kioslave, compiled and installed again, run kbuildsycoca4 but each time I run the slave thru the kioclient I see the result of the previous code. It seems the binary has been cached and is not going to be replaced. How can I force the reloading of the last compiled module? |
![]() Administrator ![]()
|
You may wish to try running "kdeinit4" to get this to kick in. Also, make sure no "kio_yourkioname" processes are still running on your system. (where yourkioname is the name of the protocol you are using)
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Uhm....no way. I do a
and I get:
but when I launch the slave I got the same output from the previous run, even if the data in the get method (and the main one) is changed. I've tried also to place some debug prints in the kdemain but without no luck. Nothing changes. I've checked for running process with
but nothing pops up. It cannot be so complicated...I must be missing something really simple here...but what???? |
![]() Administrator ![]()
|
Try running "killall klauncher" prior to running "kdeinit4".
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
No way, I tried killing klauncher and running kdeinit4 again (that shows me a kill of klauncher too) but the kioslave does not change (I tried also to uninstall, reinstall):
I've placed a fprintf on stderr in main but I cannot see any message. The same using kdebug() macro. Any other idea? |
![]() Administrator ![]()
|
Be careful - KLauncher handles the execution of KIO slaves, so the output may be in ~/.xsession-errors instead.
As to why this is not kicking in - I am not sure unfortunately. My only guesses is that it is either finding an old version of your KIO slave installed elsewhere - or it has been loaded once and is not being reloaded...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Right! I don't know why, but the klauncher was searching a slave executable inot /usr/lib/kde4 while it is going to be installed into /usr/local/lib/kde4. In fact, creating a link from the former to the latter made it working and also without requiring to run kdeinit4 each time! Now I'd like to know why my cmake is wrong and how to fix it:
I suspect $PLUGIN_INSTALL_DIR is not the same as the lib dir, but how can I check and fix it? |
![]() Administrator ![]()
|
Your CMakeLists.txt is fine.
You need to run CMake as follows when configuring your KIO slave. The below command assumes you are in a sub-directory of your sources (usually named "build" - although the name does not matter).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft