Watch
1
0
Fork
You've already forked dotfiles
0

tmp fix random bgs

This commit is contained in:
Alexander Hess 2026-08-14 14:42:52 +02:00
commit 7fd2bc4192
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
3 changed files with 90 additions and 15 deletions

View file

@ -88,6 +88,14 @@ dconf dump / > "$BACKUP_DIR/$(date +%Y%m%d-%H%M%S).ini"
ls -1t "$BACKUP_DIR"/*.ini | tail -n +11 | xargs -r rm --
# Remove temporary background image files
# created by ~/.local/bin/randomize-background
if [ "${FRESH_SESSION:-}" = "1" ]; then
echo "Removing session-scoped background image files"
rm -f "$XDG_CONFIG_HOME/gnome-settings/local/temporary_background.ini"
find "$XDG_DATA_HOME/backgrounds" -name '*-tmp-*.jpg' -delete 2>/dev/null || true
fi
echo "Resetting managed subtrees in dconf"