From 0259230d62eb733b8d55b3d85e91a7d53434d973 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 21 Jan 2026 23:07:18 -0600 Subject: fix(archsetup): run update-desktop-database after stow Register custom .desktop files in desktop database after stow links them into place. --- archsetup | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archsetup') diff --git a/archsetup b/archsetup index 8cb5db6..23d91be 100755 --- a/archsetup +++ b/archsetup @@ -656,6 +656,10 @@ user_customizations() { (cd "$dotfiles_dir" && stow --target="/home/$username" --no-folding --adopt system \ >> "$logfile" 2>&1 ) || error "error" "$action" "$?" + action="updating desktop database" && display "task" "$action" + (sudo -u "$username" update-desktop-database "/home/$username/.local/share/applications" \ + >> "$logfile" 2>&1 ) || error "error" "$action" "$?" + action="restoring dotfile versions" && display "task" "$action" (cd "$dotfiles_dir" && git config --global --add safe.directory "$user_archsetup_dir" && \ git restore . >> "$logfile" 2>&1 ) || error "error" "$action" "$?" -- cgit v1.2.3