How to update lensfun database in Flatpak install?

I am running Darktable on Ubuntu 20.04 from the Flatpak distribution. By default, its lensfun database is out of date.

However, running lensfun-update-data (with or without sudo) does not change anything within Darktable. I presume that’s because the Flatpak somehow has its own lensfun database.

How can I locate and update that database?

1 Like

Flatpak is immutable, so I don’t think you can update it. You’d need to rebuild the flatpak.

That sucks. It’s years out of date.

I’ll see what we can do

1 Like

OK, so brute-forcing it works:

  • run lensfun-update-data to grab the latest files
  • run cp -r ~/.local/share/lensfun/updates/version_1/* /var/lib/flatpak/app/org.darktable.Darktable/x86_64/stable/active/files/share/lensfun/version_2/ to overwrite the files in the flatpak.
1 Like

That’ll probably be overwritten on the next update.

Indeed. But at least I can edit my files for now.

Thank you for looking into it!

1 Like

An update for anyone looking for an answer to the same question: since lensfun: revert to 0.3.2 and update db from git by eszlari · Pull Request #59 · flathub/org.darktable.Darktable · GitHub was merged, the database has been periodically updated within the flatpak build. Presumably you can build it locally if you can’t wait for your PR to be merged.

1 Like