Problem with ksycoca on windows

Ralf Habacker ralf.habacker at freenet.de
Thu Feb 14 19:17:27 GMT 2008


Christian Ehrlicher schrieb:
> Hi,
>
> I've a problem on windows - when ksycoca is running / the db is open, I
> can't execute kbuildsycoca to update the db. The problem is that
> kbuildsycoca can't overwrite an open file on windows.
> There're two solutions
> - let kbuildsycoca create ksyscoca.new and rename the file when db is closed
> - open the file in a special mode so I can delete it also someone has an
> open file handle on it. But for this I can't use QFile and I don't know
> if it really works like it should.
>   
Appended is a patch which loaded the ksycoca database complete into 
memory and close the file, so that kbuildsycoca can update the file 
without problems.
Any objectivies ?

>
> Any ideas?
> Christian
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ksycoca-in-memory.patch
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080214/9bd67db4/attachment.ksh>


More information about the kde-core-devel mailing list