fix: resolve relative wallpaper paths before creating symlink (#5612)

This commit is contained in:
Alex Oxte
2026-05-06 07:47:48 +02:00
committed by GitHub
parent 7debca9f47
commit 0114e793a9
+6 -1
View File
@@ -9,9 +9,14 @@ if [[ -z $1 ]]; then
exit 1
fi
BACKGROUND="$1"
BACKGROUND="$(realpath "$1")"
CURRENT_BACKGROUND_LINK="$HOME/.config/omarchy/current/background"
if [[ ! -f "$BACKGROUND" ]]; then
echo "File does not exist: $BACKGROUND" >&2
exit 1
fi
# Create symlink to the new background
ln -nsf "$BACKGROUND" "$CURRENT_BACKGROUND_LINK"