Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
common: write a user fonts.conf file rather than symlinking fonts into $XDG_DATA_HOME #87
Conversation
|
This looks good to me, and does indeed what it says, but apparmor denies access to /home/$USER/.local/share/fonts/, so the snap can't see the fonts the user installed there. Fonts installed in /home/$USER/.fonts are seen though. This appears to be because the apparmor fonts abstractions only allows read access to @{HOME}/.fonts/, not @{HOME}/.local/share/fonts/. |
kenvandine
merged commit 4974c63
into
Ubuntu:master
Nov 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jhenstridge commentedNov 27, 2017
This PR changes the way we get fontconfig to find the fonts provided by the snap.
Rather than symlinking the snap's fonts to
$XDG_DATA_HOME/fonts, we instead write a config file to$XDG_CONFIG_HOME/fontconfig/fonts.confthat augments the fontconfig search path with the locations within the snap.This has a few benefits:
In addition to (2), I also provide access to the user's local fontconfig cache directory to avoid the need to scan fonts found there. It doesn't seem worth trying to use caches from the snaps though, since the caches are keyed off paths and snap paths change with each revision.