Repository navigation
Repair wallpaper links after bundled WebP conversion - #14603
Merged
Merged
Conversation
Contributor
|
Contributor
|
Thanks @manuaudio! |
Contributor
Author
|
Thanks @emirb. I confirmed the merge at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14596.
When bundled JPG and PNG wallpapers moved to WebP,
omarchy-theme-refreshrebuilt the current theme with the new filenames. Its skip-background path deliberately kept the selected wallpaper, though, socurrent/backgroundand 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.pngselection when the named theme no longer supplies that file and the exact.webpreplacement 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 -nandgit diff --checkalso pass.I did not repeat a full stable-to-edge upgrade. The test models the filesystem state from the report, including inactive-theme memory.