Run the native font cache as the session user

Avoid creating a root-owned HOME cache on clean Sargo images.
Validated with a fresh RAM boot, Fira rendering and camera/input/notification probes.
This commit is contained in:
OverSu 2026-10-01 22:18:07 +02:00
commit bdbb2e13f3

View file

@ -32,8 +32,9 @@ def prepare(root, network=None, hardware=None, diagnostics=False):
<alias binding="strong"><family>FiraSans</family><prefer><family>Fira Sans</family></prefer></alias>
</fontconfig>
''')
# fc-cache inherits HOME; running it as root leaves a root-owned user cache.
write('etc/systemd/system/tundra-display.service.d/fonts.conf', '''[Service]
ExecStartPre=+/usr/bin/fc-cache -f /usr/share/fonts/opentype/vulpes
ExecStartPre=/usr/bin/fc-cache -f /usr/share/fonts/opentype/vulpes
''')
write('etc/os-release','NAME="Tundra"\nID=tundra\nPRETTY_NAME="Tundra Sargo development trial"\n')
write('etc/hostname','vulpes-sargo\n')