Skip to content

desk: version-stamp the look so an asset change re-seeds existing desks - #1

Merged
ishu86 merged 1 commit into
mainfrom
desk-look-reseed
Aug 21, 2026
Merged

ishu86 merged 1 commit into
mainfrom
desk-look-reseed

Conversation

@ishu86

@ishu86 ishu86 commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

The home volume outlives the image and is the computer's identity (lifecycle.py: "container is cattle, the volume is the identity"). A desk created before a look change already has xfconf files on its volume, so start.sh's missing-only seed() skips every seed — the new wallpaper, panel layout, and dock launchers sit unused in the image while the desk keeps rendering the old look. Recreating the container doesn't help; only a brand-new volume would.

Fix

LOOK=v2 plus a ~/.config/.case-look stamp:

  • stamp matches → missing-only seed, user tweaks survive (today's behavior)
  • stamp stale/absent → one forced cp -f pass, then the stamp is written

Bump LOOK whenever image/assets/ changes; every existing desk re-seeds exactly once (resetting desktop tweaks that one time), then goes back to leaving the user alone.

Also normalizes DESK_RESOLUTION: Xvfb exits 1 on bare WxH, so a missing depth gets x24 appended — 24 being the only depth deskd's XWD→PNG grab (32bpp) supports.

Verified

  • stale pre-existing config + bump → overwritten
  • user tweak with matching stamp → survives
  • next bump → forced re-seed
  • bash -n clean

🤖 Generated with Claude Code

The volume outlives the image and IS the computer's identity, so a desk
created before a look change keeps its old xfconf files; the missing-only
seed skips every one and the new wallpaper/panel/dock sits unused in the
image. LOOK=v2 + a ~/.config/.case-look stamp: a bump force-seeds each
desk once (resetting desktop tweaks that one time), then reverts to
missing-only so user tweaks survive. Bump LOOK whenever image/assets
change.

Also normalize DESK_RESOLUTION: Xvfb needs WxHxD and exits 1 on bare WxH,
so append x24 when depth is missing — 24 is the only depth deskd's
XWD->PNG grab (32bpp) supports.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ishu86
ishu86 merged commit dd1d993 into main Aug 21, 2026
3 checks passed
@ishu86
ishu86 deleted the desk-look-reseed branch August 21, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant