Fix wallpaper reapplication issue after recent update#28
Merged
rvanbaalen merged 1 commit intomainfrom Dec 21, 2025
Merged
Conversation
macOS caches wallpaper URLs, so calling setDesktopImageURL() with the same URL twice (even with different file contents) is ignored by macOS. This fix adds a millisecond timestamp to wallpaper filenames, ensuring each application creates a unique URL that forces macOS to reload. Old wallpaper files are cleaned up to prevent disk bloat. Fixes regression introduced in v1.2.3 where deterministic filenames prevented users from reapplying wallpapers without manually changing the desktop wallpaper first.
rvanbaalen
pushed a commit
that referenced
this pull request
Dec 21, 2025
🤖 I have created a release *beep* *boop* --- ## [1.2.4](v1.2.3...v1.2.4) (2025-12-21) ### Bug Fixes * wallpaper reapplication issue after recent update ([#28](#28)) ([f76ddaf](f76ddaf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
macOS caches wallpaper URLs, so calling setDesktopImageURL() with the same URL twice (even with different file contents) is ignored by macOS.
This fix adds a millisecond timestamp to wallpaper filenames, ensuring each application creates a unique URL that forces macOS to reload. Old wallpaper files are cleaned up to prevent disk bloat.
Fixes regression introduced in v1.2.3 where deterministic filenames prevented users from reapplying wallpapers without manually changing the desktop wallpaper first.