diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-11 17:23:20 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-11 17:23:20 -0500 |
| commit | 24e3c8497c69011ae5f4e35c35deac4996b45d2c (patch) | |
| tree | 7d8e5e618ed1e1e21b065e64dc1acfd7acc986ce | |
| parent | 830e03f182e6965649bc59b0cd0d9659afed0448 (diff) | |
| download | archsetup-24e3c8497c69011ae5f4e35c35deac4996b45d2c.tar.gz archsetup-24e3c8497c69011ae5f4e35c35deac4996b45d2c.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-x | archsetup | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 \ |
