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
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
