Fix: include symlinked backgrounds in theme rotation (#2355)

This commit is contained in:
Claudio Benvenuti
2025-10-17 11:27:02 +02:00
committed by GitHub
parent 4174ff7b13
commit a874f6f8a6

View File

@@ -5,7 +5,7 @@
BACKGROUNDS_DIR="$HOME/.config/omarchy/current/theme/backgrounds/"
CURRENT_BACKGROUND_LINK="$HOME/.config/omarchy/current/background"
mapfile -d '' -t BACKGROUNDS < <(find "$BACKGROUNDS_DIR" -type f -print0 | sort -z)
mapfile -d '' -t BACKGROUNDS < <(find -L "$BACKGROUNDS_DIR" -type f -print0 | sort -z)
TOTAL=${#BACKGROUNDS[@]}
if [[ $TOTAL -eq 0 ]]; then