From bdbb2e13f37cb9faca18c3147fe3ddd92be614f7 Mon Sep 17 00:00:00 2001 From: OverSu Date: Thu, 1 Oct 2026 22:18:07 +0200 Subject: [PATCH] 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. --- tundra/runtime/prepare-native.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tundra/runtime/prepare-native.py b/tundra/runtime/prepare-native.py index e8b3467e..4aefaee5 100644 --- a/tundra/runtime/prepare-native.py +++ b/tundra/runtime/prepare-native.py @@ -32,8 +32,9 @@ def prepare(root, network=None, hardware=None, diagnostics=False): FiraSansFira Sans ''') + # 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')