Registered Member
|
Simple question (but not for me): Say I don't want to build and include this scan plugin in kword, how do I manage this? I have tried to find it, but I think one of the developers can explain this to me much faster and better.
|
Registered Member
|
if you could provide a bit more information, for us to help you with. i'm not sure of the scan plugin that you are referring to.
if it is a buildtime flag, you can check the options available by getting the source tarball and
this will walk you through the options available to disable attributes of the koffice package. |
Registered Member
|
vbatts,
thank you for replying, what I mean is the scan image plugin. This is a plugin and I don't want my users to be able to use this feature. As you might have picked up from the forum, I'm trying to use kword in my application. Since kword is kind of interlaced in koffice, I need to isolate it and there for I need to "hack into" the build system. This means that there is no need to build plugins I won't use. I will first start up with a stripped kword ( basic functionality) and once users get familiar with it I will add more and more kword features to it ( perhaps building it myself). If you have any kind of advice for me, please don't hesitate to share with me. |
Registered Member
|
the only scan library i see is a /usr/lib/kde4/kofficescan.so
and of every linked binary in the koffice bundle, i'm not seeing anything linked to it, so i could only guess that it is a dynamically linked library plugin. i'm looking into any compile time options right now. but I even just tried a couple of things, with `kword` running as normal
then, moving the kofficescan.so out of that directory
and restarting kword, and look again for it using that library
nothing. i have not fully walked through to see what instabilities this approach would cause but it may help you for a minute. Take care, |
Registered Member
|
again thanks vbatts,
indeed that is the one I mean. I guess it's dynamically loaded as a plugin, so if you're right I should just move the library to somewhere else where it's not found and then everything should be OK. This is a solution and I will use it for the time being, but I'm guessing that is a more elegant way to achieve this e.g. by telling kword not to load it during execution time...right?? |
Registered Member
|
while that seems preferable, it does not seem to be a feature that is present.
|
Registered Member
|
vbatts,
sorry for this late reply, but I'm busy with several things at the same time and therefore I wasn't able to reply very quickly. I guess I have to find out where in the code of koffice/kword this plugin is searched dynamically, if you got any clue where I should look...... |
Administrator
|
It is likely done by querying the Sycoca, which is a core component of KDE.
You will need to find the *.desktop file which specifies the details about the scan plugin and remove it, then run "kbuildsycoca4 --noincremental" and restart KOffice. Then the Sycoca will not know about the plugin, and by extension neither will KOffice.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
see http://www.koffice.org/developer/apidoc ... l#_details
You can adjust your kwordrc to enable/disable loading of plugins.
Thomas Zander
KWord maintainer |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan