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:
parent
9b606ed5f3
commit
bdbb2e13f3
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
<alias binding="strong"><family>FiraSans</family><prefer><family>Fira Sans</family></prefer></alias>
|
||||||
</fontconfig>
|
</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]
|
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/os-release','NAME="Tundra"\nID=tundra\nPRETTY_NAME="Tundra Sargo development trial"\n')
|
||||||
write('etc/hostname','vulpes-sargo\n')
|
write('etc/hostname','vulpes-sargo\n')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue