aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-02-04 15:04:12 -0500
committerDon Williams <don.e.williams@gmail.com>2026-02-04 15:04:12 -0500
commitbb701a20280ab0049a8b31f502c2f6d2992ad940 (patch)
tree5250ca6bab3514916e9d40a5610b05728e668c94
parent68a7844037c52fabe3317e63e8d6c17213f9ae2d (diff)
Fresh install option did not reset wallpaper
On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: scripts/lib_copy.sh
-rw-r--r--scripts/lib_copy.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/lib_copy.sh b/scripts/lib_copy.sh
index dd83007e..58fbe066 100644
--- a/scripts/lib_copy.sh
+++ b/scripts/lib_copy.sh
@@ -149,7 +149,15 @@ restore_hypr_assets() {
echo -e "\n${NOTE:-[NOTE]} Restoring ${SKY_BLUE:-}Animations & Monitor Profiles${RESET:-} into ${YELLOW:-}$HYPR_DIR${RESET:-}..."
- local DIR_B=("Monitor_Profiles" "animations" "wallpaper_effects")
+ # Fresh installs should apply repo defaults; do not restore a previous wallpaper.
+ # RUN_MODE is set by copy.sh (install|upgrade|express) and is visible here.
+ local DIR_B=("Monitor_Profiles" "animations")
+ if [ "${RUN_MODE:-}" != "install" ]; then
+ DIR_B+=("wallpaper_effects")
+ else
+ echo "${NOTE:-[NOTE]} Fresh install: skipping restore of wallpaper_effects so default wallpaper applies." 2>&1 | tee -a "$log"
+ fi
+
for DIR_RESTORE in "${DIR_B[@]}"; do
local BACKUP_SUBDIR="$BACKUP_HYPR_PATH/$DIR_RESTORE"
if [ -d "$BACKUP_SUBDIR" ]; then
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage