dumol / PixelPerfect

Pixel-perfect font rendering under Wayland and X.org
MIT License
16 stars 1 forks source link

Snap packages are not improved. #12

Open dumol opened 9 months ago

dumol commented 9 months ago

It seems that Snap packages can't access hidden sub-directories from $HOME. This is especially a problem for latest Ubuntu releases, where Firefox is a Snap package that can only access non-hidden files and sub-directories from a user's home directory.

dumol commented 9 months ago

A solution for Ubuntu's Firefox inspired by https://askubuntu.com/a/1460014:

ln -s ~/.local/share/fonts ~/snap/firefox/current/.local/share/fonts
mv ~/snap/firefox/current/.config/fontconfig ~/snap/firefox/current/.config/fontconfig.orig
ln -s ~/.config/fontconfig ~/snap/firefox/current/.config/fontconfig
fc-cache -f -r

After running the above commands, restart Firefox.