From 1ca92e96bad2b9e0919480a73627ec8b96f1db50 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 13 Apr 2026 21:09:21 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20icon=20copy=20=E2=80=94=20dereference=20s?= =?UTF-8?q?ymlinks=20and=20clean=20before=20copying?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Papirus icons in the Nix store are symlinks, so cp -a creates read-only symlinks that can't be overwritten on subsequent runs. Now removes the directory first and uses cp -rL to dereference. Co-Authored-By: Claude Opus 4.6 --- templates/recolor-folders.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/recolor-folders.sh b/templates/recolor-folders.sh index a9df454..f097301 100644 --- a/templates/recolor-folders.sh +++ b/templates/recolor-folders.sh @@ -79,8 +79,9 @@ done # Copy Papirus mimetype icons at all available sizes for size in 16x16 22x22 32x32 48x48 64x64 96x96 128x128; do if [ -d "$PAPIRUS/$size/mimetypes" ]; then + rm -rf "$ICON_DIR/$size/mimetypes" mkdir -p "$ICON_DIR/$size/mimetypes" - cp -a "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/" + cp -rL "$PAPIRUS/$size/mimetypes"/* "$ICON_DIR/$size/mimetypes/" fi done