tmp fix random bgs
This commit is contained in:
parent
deef81028d
commit
7fd2bc4192
3 changed files with 90 additions and 15 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue