Problem with ksycoca not being regenerated under flatpak

David Faure faure at kde.org
Sat Dec 12 21:59:58 GMT 2020


Time flies, sorry for the delay.

On samedi 12 septembre 2020 19:44:45 CET Albert Astals Cid wrote:
> flatpak mounts all files as if created on January 1st 1970.

Isn't that a bug in itself? Why doesn't it preserve mtimes?

> This has the unfortunate effect that when we add new plugins to a flatpak
> (i.e. we just added markdown preview support in kate), they are not seen
> because ksycoca doesn't feel the need to regenerate itself (the sycoca file
> for flatpak is written "outside" flatpak container and thus has a newer
> date).
> 
> I remember talking about this probably a year ago at least with Aleix, but i
> guess we did not come up with any solution since it's still broken :D
> 
> I don't know much about sycoca, but can we make it so the cache always get
> regenerated on app launch when run under flatpak?

Is there no way to manually "touch" a directory after adding new files?

Otherwise, the hack you have in mind could be implemented as in the attached 
patch. Untested, except that it compiles.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flatpak_hack.diff
Type: text/x-patch
Size: 990 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20201212/030dfc19/attachment.bin>


More information about the Kde-frameworks-devel mailing list