This forum has been archived. All content is frozen. Please use KDE Discuss instead.

reload a kded4 module after code modifications

Tags: None
(comma "," separated)
filou
Registered Member
Posts
1
Karma
0
OS
Hello,
How can we force KDED4 to reload a module using the modified version on the disk ?

I made code modifications in a kde4 'startup service',
regenerated the '/usr/local/lib/kde4/kded_foobar.so' library,
but when I stop and restart the 'Foobar daemon' from the service manager,
the old version of the module is executed.

It seems the new version of the module can be loaded from the disk only by restarting the KDE session... not convenient!
restarting 'kdeinit4', 'kded4', or 'kbuildsyscoca4' from a terminal doesn't help.

I would appreciate any help!
thanks
Francois
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
Try using D-Bus.

qdbus org.kde.kded /kded

lists an unload and a load method. Not sure if this works the way you want it.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
sebas
KDE Developer
Posts
88
Karma
2
OS
You'll have to restart kded4 to make this work, the library gets cached, und reloading it will load the old version again, not the changed one from disk.

Restarting the whole session shouldn't be necessary, just kill and restart kded4.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]