flatpak / freedesktop-sdk-images

Flatpak freedesktop 1.6 runtime. Note: New development is at https://gitlab.com/freedesktop-sdk/freedesktop-sdk
29 stars 33 forks source link

Fonts installed in symbolic linked folder are lost in flatpak #119

Closed Jehan closed 6 years ago

Jehan commented 6 years ago

Someone noticed that some fonts were missing in GIMP. For instance on a Fedora, if you install the package texlive-tex-gyre, it would install a bunch of fonts under /usr/share/texlive/texmf-dist/fonts/opentype/public/tex-gyre/ and add a symlink to this folder under /usr/share/fonts/.

Now I can note that the freedesktop runtime adds /etc/fonts/conf.d/50-flatpak.conf and in particular that /run/host/fonts is mapped to /usr/share/fonts/. Unfortunately while doing so, it doesn't take into account symlinks which are not remapped. Hence any fonts which are installed as symlinks on the host system (such as this Tex Gyre package) are lost in the sandbox.

Of course, special-casing these would work, but this is obviously not very good. A generic solution is needed. Could something be done about this? Cf. https://github.com/flathub/org.gimp.GIMP/issues/20

TingPing commented 6 years ago

This is handled by Flatpak not the runtime: https://github.com/flatpak/flatpak

Jehan commented 6 years ago

Ok. New report: https://github.com/flatpak/flatpak/issues/2134