diff options
| author | 2026-05-13 13:43:30 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:30 +0100 | |
| commit | 6bc872c28d44f42fe53b755be661257e8533df0f (patch) | |
| tree | 87d2ba3fe8d6670e39bda885398170981c0657ef | |
| parent | 30817cf6dc975ec514dce2b39b2e946d77e14ba3 (diff) | |
| download | dotfiles-6bc872c28d44f42fe53b755be661257e8533df0f.tar.gz dotfiles-6bc872c28d44f42fe53b755be661257e8533df0f.tar.bz2 dotfiles-6bc872c28d44f42fe53b755be661257e8533df0f.zip | |
feat(flatpak): expose host fonts globally so browsers render emoji
LibreWolf and ungoogled-chromium were rendering emoji and nerd-font
glyphs as tofu because flatpaks don't see /usr/share/fonts by default.
Apply a global override (no app argument) granting read-only access to
the system font dirs and the user's fontconfig. noto-fonts-emoji is
already in meta/fonts.txt.
| -rw-r--r-- | run_onchange_after_deploy-flatpak-overrides.sh.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/run_onchange_after_deploy-flatpak-overrides.sh.tmpl b/run_onchange_after_deploy-flatpak-overrides.sh.tmpl index 0456883..6ce657d 100644 --- a/run_onchange_after_deploy-flatpak-overrides.sh.tmpl +++ b/run_onchange_after_deploy-flatpak-overrides.sh.tmpl @@ -19,3 +19,13 @@ apply io.mpv.Mpv --filesystem=xdg-config/mpv:ro # LibreWolf needs raw /dev access for v4l2 webcams. Flatpak has no # finer-grained device option, so this opens video/dri/snd at once. apply io.gitlab.librewolf-community --device=all + +# Host fonts (notably noto-fonts-emoji) for every flatpak. Without this, +# browsers and other GUI apps fall back to tofu boxes for emoji and +# nerd-font glyphs. Applied globally with `flatpak override --user` +# (no app argument). +flatpak override --user \ + --filesystem=/usr/share/fonts:ro \ + --filesystem=/usr/local/share/fonts:ro \ + --filesystem=xdg-data/fonts:ro \ + --filesystem=xdg-config/fontconfig:ro |
