aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-11 17:23:20 -0500
committerCraig Jennings <c@cjennings.net>2026-05-11 17:23:20 -0500
commitc6cc2e48e1438df9395b9b2f492c25eabee29869 (patch)
tree06bd201f7f32b6936ef29938b250658637e8f863
parentdf1672dc003f2c67c4b1257f1eda7919be08697b (diff)
downloadarchsetup-c6cc2e48e1438df9395b9b2f492c25eabee29869.tar.gz
archsetup-c6cc2e48e1438df9395b9b2f492c25eabee29869.zip
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.
-rwxr-xr-xarchsetup6
1 files changed, 6 insertions, 0 deletions
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 \