Merge pull request #2002 from tastyhub/flatpak-font-manager-fonts

Flatpak: fonts a font manager activates into ~/.fonts are visible
This commit is contained in:
BFlat
2026-10-16 05:52:34 +07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -28,9 +28,13 @@ finish-args:
# portal, so broad filesystem access isn't needed. Pictures is granted for opening files by
# path from the command line.
- --filesystem=xdg-pictures
# Font managers (FontBase and others) activate fonts into ~/.fonts, which Flatpak does not open
# to a sandbox: it exposes /usr/share/fonts and ~/.local/share/fonts, and nothing else. Without
# this the font list holds none of the activated families, while native apps see them.
- --filesystem=~/.fonts:ro
# Deliberately not granted: network (the optional --control server listens on 127.0.0.1 in
# the sandbox; `flatpak override --user --share=network ai.storyteller.vectorcraft` exposes it
# to host agents) and home/host filesystem access.
# to host agents) and home/host filesystem access beyond the read-only folders above.
modules:
- name: vectorcraft
buildsystem: simple
@@ -26,6 +26,7 @@ finish-args:
# portal, so broad filesystem access isn't needed. Pictures is granted for opening files by
# path from the command line.
- --filesystem=xdg-pictures
- --filesystem=~/.fonts:ro
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
modules: