When I open my Canon CR2 test photo in Affinity Photo, the application recognizes the correct Lens profile 'Canon EF 28mm f/1.8 USM'. So this profile is included in the application. The Distortion correction is not good, however. I also noticed that Chromatic Aberration Reduction and Remove Lens Vignette are not automatically checked. Turning Remove Lens Vignette on gives a better result but is still not perfect. This whole profile seems wrong.
So I decided to create my own lens profile for the Lensfun project and added distortion, tca and vignetting elements in the XML. I copied this XML to the correct directory and my lens profile is now visible in the list. To recognize my own profile I added two characters at the end of the name.
When I again open the test photo I have exactly the same results. Affinity Photo recognizes its own profile. When I change the Lens profile to my created profile, the distortion correction is way better. The application responds to my profile! Yeah. Still no checked boxes in the other two fields.
When I turn on Remove Lens Vignette I get exactly the same result as before. It even seems that this correction is not responding any lens profile I choose. I get the same result with different lenses from the list.
Where are Chromatic Aberration Reduction and Remove Lens Vignette getting its information from? Not from the Lensfun database I guess.