Re: Next steps for a reproducible Fontconfig?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 2, 2019 at 2:35 PM Akira TAGOH <akira@xxxxxxxxx> wrote:
>
> Thanks for testing, Alex.
>
> On Mon, Apr 1, 2019 at 11:35 PM Alexander Larsson
> <alexander.larsson@xxxxxxxxx> wrote:
> > I don't understand why its generating cache files with the same
> > filenames, even though the salt for /usr/share/fonts is different.
>
> I've added some debugging output (try FC_DEBUG=16 if you want to see
> more) to see how fontconfig determines cache filename with given
> config. and I found etc/fonts/conf.d/50-flatpak.conf has:
>         <reset-dirs/>
>
>         <dir salt="unique-per-runtime">/usr/share/fonts</dir>
>
> and reading config files in ASCII order. so when comparing the name of
> "50-flatpak-salted.conf" and "50-flatpak.conf", 50-flatpak-salted.conf
> is read first. then it was reset and overwritten (newly added in fact)
> by the non unique string in 50-flatpak.conf.
> That's the reason why you got same cache names in two runs.
> So if you don't need to keep the above two lines in 50-flatpak.conf,
> you can drop them from there and add <reset-dirs/> to
> 50-flatpak-salted.conf.

Thanks! This was super confusing. I was assuming "50-flatpak" would
sort before "50-flatpak-salted", and i guess it does, but what gets
sorted is "50-flatpak.conf"...  I'm gonna rename it to
49-flatpak-salted to make it less confusing.
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux