[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: KDEDIRS, etc & kbuildsycoca
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-10-31 15:37:51
[Download RAW message or body]

On Friday 31 October 2003 08:39, Marc Heyvaert wrote:
> Hello,
> 
> I'm still fumbling around with my self-compiled version of the koffice
> beta4...
... when RC 1 is out already :)

> I managed to compile koffice successfuly with the prefix /usr/local wheras
> kde resides in /opt/kde3 (suse 8.2 distro)
> 
> When I start my PC and log in as a user (/home/march) I could not start the
> program because it did not appear in the menu and starting it from
> /usr/local/bin brought up the application (e.g. kspread) without the
> templates and without the full menu.
> 
> That was linked to some of my environment variables not being set. I solved
> this one by
> 
> export KDEDIR=/opt/kde3
not needed, if KDEDIRS is set

> export KDEDIRS=/usr/local:/opt/kde3
> kbuildsycoca
> 
> (I didn't set $KDEHOME, because echo reveiled it is already pointing to
> /home/march/.kde3)
> 
> And it worked (well also crashed sometimes but I guess this is due to it
> being the beta?).
> 
> Next I tried to set these changes permanently, first by changing the bashrc
> file (I'm not 100% sure, I cannot check because I am at work now on a Win
> 2000 PC :-(  ) or something of that sort, later by adapting
> /etc/profile.local. On every occasion, after reboot, the variables were set
> (checked with echo $KDE...etc ) but in order to make things work I had to
> run kbuildsycoca too.
> 
> Now my question is why? In the documents about the KDE directory tree and
> the "running 2 versions of KDE" I saw nothing about this. Could somebody
> help pls?

It sounds like KDEDIRS isn't set (or not correctly) when your KDE starts.
So it rebuilds ksycoca without the koffice prefix in it.
You have to make sure KDEDIRS is set correctly - the safest way is
to set it at the top of /opt/kde3/bin/startkde.

The instructions on koffice.org also explain how you can add that prefix
to /etc/kderc, which is even better since it means you don't have to edit
startkde (which the next KDE upgrade will replace).

-- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic