[rkward-devel] Moving all.pluginmap

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon May 19 10:29:29 UTC 2008


Hi Pierre,

On Monday 19 May 2008, pingou wrote:
> Packaging rkward for Fedora, I am facing the problem of having to move
> one file. I install the file all.pluginmap in
> /usr/share/kde4/apps/rkward/all.pluginmap but rkward tries to find it in
> /usr/share/apps/rkward/all.pluginmap.

instead of moving individual files, you should probably use cmake switches to 
configure the installation. In this case
-DDATA_INSTALL_DIR=/usr/share(/kde4)/apps/
should allow you to switch the location.

I'm not sure, whether or not this will also fix lookup of the file, but it is 
definitely worth a try. You might also want to look at some other KDE 4 
packages to see where those place their data files, and whether they did any 
further adjustments.

> I had a brief look, it seems that I could hardcode the pathway in
> QString getRKWardDataDir () {
>       return (KGlobal::dirs ()->findResourceDir ("data",
> "rkward/all.pluginmap") + "rkward/");
> }
>
> but it does not sound a very nice solution to me...

You're right, this does not really sound like a nice solution. However, if all 
else fails, this should probably work (all file lookups will go through this 
one function).

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20080519/c8e7127e/attachment.sig>


More information about the Rkward-devel mailing list