From 24e3c8497c69011ae5f4e35c35deac4996b45d2c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 11 May 2026 17:23:20 -0500 Subject: fix(archsetup): install fontconfig and dconf before calling them The 2026-05-11 VM test surfaced three exit-127 / "dbus-launch returned 1" errors very early in the run: `fc-cache` and the two `dconf` writes in `user_customizations()`. The function runs as step 4 of 13 (before `aur_installer`, the DE step, and most of the package installs), so the binaries the function calls are not on PATH yet. I added `pacman_install fontconfig` and `pacman_install dconf` right before their use, mirroring the existing `pacman_install desktop-file-utils` pattern in the same function. Both are idempotent. Verified by `bash -n`. The next `make test` run confirms the behavior in the VM. --- archsetup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archsetup b/archsetup index 336ba28..e7739ff 100755 --- a/archsetup +++ b/archsetup @@ -865,6 +865,9 @@ user_customizations() { fi fi + # install fontconfig before refreshing cache (provides fc-cache) + pacman_install fontconfig + # Refresh font cache for any fonts in dotfiles action="refreshing font cache" && display "task" "$action" fc-cache -f >> "$logfile" 2>&1 || error_warn "$action" "$?" @@ -877,6 +880,9 @@ user_customizations() { (sudo -u "$username" update-desktop-database "/home/$username/.local/share/applications" \ >> "$logfile" 2>&1 ) || true + # install dconf before writing GTK/GNOME desktop settings (provides dconf) + pacman_install dconf + # GTK file chooser settings (stored in dconf, can't be stowed) action="configuring GTK file chooser" && display "task" "$action" (sudo -u "$username" dbus-launch dconf write /org/gtk/settings/file-chooser/sort-directories-first true \ -- cgit v1.2.3