Skip to content

Repair wallpaper links after bundled WebP conversion - #14603

Merged
emirb merged 2 commits into
omacom:quattrofrom
manuaudio:fix/repair-webp-background-links
Oct 9, 2026
Merged

emirb merged 2 commits into
omacom:quattrofrom
manuaudio:fix/repair-webp-background-links

Conversation

@manuaudio

@manuaudio manuaudio commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #14596.

When bundled JPG and PNG wallpapers moved to WebP, omarchy-theme-refresh rebuilt the current theme with the new filenames. Its skip-background path deliberately kept the selected wallpaper, though, so current/background and the remembered per-theme files could still name an image that no longer existed. The shell then opened a dangling target and showed a black background.

I added one user migration that repairs only this conversion. It changes a .jpg, .jpeg, or .png selection when the named theme no longer supplies that file and the exact .webp replacement exists. For an active stale theme copy, it stages the replacement before relinking; for inactive themes, it resolves user and bundled sources by the remembered theme name rather than inspecting the active theme. Existing source images, other extensions, and dangling paths without an exact replacement stay untouched. After repairing the active link, it asks the running shell to load the WebP. The migration is idempotent.

The focused regression covers an active dangling JPEG, inactive remembered JPEG and PNG selections, custom-theme and active-theme filename collisions, a stale staged JPEG before refresh, a second run, an existing JPEG that shares a stem with a WebP, missing paths without replacements, and the live shell refresh call. Against unmodified quattro, it exited 1 because the repair migration did not exist. With this change, all seven behavior checks pass. bash -n and git diff --check also pass.

I did not repeat a full stable-to-edge upgrade. The test models the filesystem state from the report, including inactive-theme memory.

@greptile-apps

greptile-apps Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Migration script modifies user state files and symlinks.

The PR appears safe to merge; both previously reported wallpaper repair problems are fixed.

What we checked:

  • Offline shell stops wallpaper repair: omarchy-shell -q returns success when the shell is unavailable. The migration can continue repairing remembered selections.

Summary

Repairs wallpaper selections after bundled images move to WebP.

  • Checks remembered selections against their named theme.
  • Copies an active replacement into staging when needed and tells the running shell to display it.
  • Adds tests for filename collisions and repair before theme refresh.
  • Both previous findings are addressed. No new actionable issues were found.

Reviews (2) · Last reviewed commit: "Fix WebP background migration boundaries" · Reviewed by Greptile

Comment thread migrations/1791470456.sh Resolved
Comment thread migrations/1791470456.sh Resolved
@emirb
emirb merged commit 187a145 into omacom:quattro Oct 9, 2026
1 check passed
@emirb

emirb commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thanks @manuaudio!

@manuaudio

Copy link
Copy Markdown
Contributor Author

Thanks @emirb. I confirmed the merge at 187a145a and both authored commits are credited to me. Glad the WebP wallpaper migration repair made it in.

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.

Wallpaper JPEG-to-WebP upgrade leaves current/background pointing to removed JPEG

2 participants